GitLab API icon

GitLab API

Gitlab

Actions1062

Conan_packages → postApiV4ProjectsIdPackagesConanV1ConansPackageNamePackageVersionPackageUsernamePackageChannelPackagesConanPackageReferenceUploadUrls

AI-generated

Summary

Request upload URLs for a specific Conan package version within a GitLab project to facilitate uploading package files.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab project containing the Conan package.
  • package_name (required) — The name of the Conan package.
  • package_version (required) — The version of the Conan package.
  • package_username (required) — The package username, typically scoped to the group and project (e.g., 'my-group+my-project').
  • package_channel (required) — The package channel (e.g., 'stable').
  • conan_package_reference (required) — The Conan package reference ID.
  • skipAuthentication — Boolean flag to skip using GitLab API authentication (default is false).
  • baseUrl — The base URL of the GitLab instance, defaults to 'https://gitlab.com' if not set.
  • method — HTTP method to use for the request, defaults to 'GET' according to properties but is designed for POST; should be set appropriately (the path suggests POST).

Output shape

a JSON object containing upload URLs corresponding to the specified Conan package version

The response is from a POST request to the path /api/v4/projects/{id}/packages/conan/v1/conans/{package_name}/{package_version}/{package_username}/{package_channel}/packages/{conan_package_reference}/upload_urls. This operation requires all path parameters to identify the exact package version and returns the necessary URLs to upload package files to GitLab's Conan package registry.

Links

Discussion