GitLab API icon

GitLab API

Gitlab

Actions1062

Composer_packages → postApiV4ProjectsIdPackagesComposer

AI-generated

Summary

Publish a Composer package to a GitLab project's Composer package registry via POST /api/v4/projects/{id}/packages/composer.

Inputs

  • pathParameters.id (required) — The project ID or URL-encoded path of the project. This is required by the request path.

Output shape

JSON response from GitLab's Composer package API

Returns the API response from the POST request to /api/v4/projects/{id}/packages/composer. The exact structure depends on the GitLab API response for the created Composer package.

Examples

Example 1: A workflow needs to publish a Composer package to a specific GitLab project's package registry.

Use the GitLab API to create a Composer package in a project.

Links

Discussion