GitLab API icon

GitLab API

Gitlab

Actions1062

Conan_packages → putApiV4ProjectsIdPackagesConanV1FilesPackageNamePackageVersionPackageUsernamePackageChannelRecipeRevisionExportFileName

AI-generated

Summary

Upload or update a specific Conan package file in a GitLab project by making a PUT request to the GitLab API with required path parameters identifying the project and package details, along with the file content in the request body.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab project.
  • package_name (required) — The name of the Conan package to update or upload.
  • package_version (required) — The version string of the Conan package.
  • package_username (required) — The username or namespace owning the Conan package.
  • package_channel (required) — The channel of the Conan package (e.g., 'stable').
  • recipe_revision (required) — The revision of the Conan recipe.
  • file_name (required) — The specific Conan package file name to upload. Must be one of: conanfile.py, conanmanifest.txt, conan_sources.tgz, conan_export.tgz, conaninfo.txt, conan_package.tgz.
  • Request Body (required) — The content of the file to upload as the body of the PUT request.

Output shape

a JSON response object from the GitLab API indicating success or failure of the file upload

The response shape is defined by the GitLab API for this endpoint. Authentication is required unless 'Skip Authentication' is set to true. The operation makes an HTTP PUT request to the path /api/v4/projects/{id}/packages/conan/v1/files/{package_name}/{package_version}/{package_username}/{package_channel}/{recipe_revision}/export/{file_name}.

Links

Discussion