GitLab API icon

GitLab API

Gitlab

Actions1062

Composer_packages → getApiV4ProjectsIdPackagesComposerArchives*packageName

AI-generated

Summary

Retrieve a Composer package archive for a specific GitLab project using the project ID or URL-encoded path, the SHA value, and the Composer package name.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab project to query.
  • sha (required) — The SHA checksum of the current composer.json to identify the exact archive version.
  • package_name (required) — The name of the Composer package to retrieve its archive.
  • skipAuthentication — Optionally skip authentication when making the API call (default is false).
  • baseUrl — The base URL of the GitLab instance, defaulting to https://gitlab.com.
  • method — The HTTP method to use, defaulting to GET.

Output shape

the binary content of the Composer package archive corresponding to the specified project, SHA, and package name

The operation returns the raw archive file for the requested Composer package version. Authentication is required unless explicitly skipped. Ensure all path and query parameters are correctly set to retrieve the expected archive.

Examples

Example 1: Download a Composer package archive from a known project

Set 'id' to the project ID/path, 'sha' to the exact checksum of the composer.json, and 'package_name' to the Composer package's name, using the GET method with authentication enabled.

Links

Discussion