GitLab API icon

GitLab API

Gitlab

Actions1062

Maven_packages → putApiV4ProjectsIdPackagesMaven*pathFileName

AI-generated

Summary

Upload or update a Maven package file for a specified GitLab project by performing a PUT request to the project's Maven packages API endpoint with the given file name and file data.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab project to which the Maven package file will be uploaded or updated.
  • file_name (required) — The name of the Maven package file to upload or update (e.g., 'mypkg-1.0-SNAPSHOT.pom').
  • Request Body (required) — The raw binary or form-data content of the Maven package file to be uploaded in the request body.
  • Skip Authentication — A boolean option to skip authentication if set to true; defaults to false and uses GitLab API credentials for authentication.
  • baseUrl — Optional override of the GitLab instance base URL, defaulting to 'https://gitlab.com'.

Output shape

The API response from GitLab, typically confirming the successful upload or update of the Maven package file, returned as JSON.

The operation performs a PUT HTTP request to the endpoint '/api/v4/projects/{id}/packages/maven/*path/{file_name}'. Authentication is required unless explicitly skipped. Errors from the GitLab API will propagate as operation failures.

Links

Discussion