GitLab API icon

GitLab API

Gitlab

Actions1062

Maven_packages → putApiV4ProjectsIdPackagesMaven*pathFileNameAuthorize

AI-generated

Summary

Authorize a Maven package file within a specified GitLab project by sending a PUT request to the project's Maven package authorization endpoint.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab project where the Maven package resides.
  • file_name (required) — The name of the Maven package file to authorize, e.g., 'mypkg-1.0-SNAPSHOT.pom'.
  • putApiV4ProjectsIdPackagesMaven*pathFileNameAuthorize (required) — The request body object containing authorization details as defined by the GitLab API schema for this endpoint.
  • skipAuthentication — If set to true, disables authentication for this request; otherwise, uses GitLab API credential by default.

Output shape

a single record containing the response from the GitLab API authorization endpoint.

This operation performs a PUT request to the endpoint '/api/v4/projects/{id}/packages/maven/*path/{file_name}/authorize' and returns the API response. The response structure follows GitLab's API schema. Authentication can be disabled with 'Skip Authentication', otherwise credentials configured in the node are used.

Examples

Example 1: Authorize a Maven package file

Set the project 'id' parameter to the project where the package is stored, specify the exact 'file_name' of the Maven package file, and provide the required authorization details in the request body. Run the operation to authorize the specified Maven package file in the configured GitLab project.

Links

Discussion