Use this API to publish a release of a component project to the CI/CD catalog.

This endpoint is intended for CLI tooling and must be authenticated with a job token.

Publish a new component project release as version to the CI/CD catalog

POST /api/v4/projects/{id}/catalog/publish

Publishes a release of a catalog resource as version to the CI/CD catalog.

Parameters

NameTypeDescription
id
Path, required
String or integerThe ID or URL-encoded path of the project

Request body (application/json)

PropertyTypeDescription
metadata
Required
ObjectThe metadata for the release

Responses

CodeDescriptionSchema
201CreatedAPIEntitiesCiCatalogResourcesVersion
400Bad Request—
401Unauthorized—
403Forbidden—
404Not found—
422Unprocessable entity—

Schemas

Objects returned by the operations above and objects nested in their request bodies.

APIEntitiesCiCatalogResourcesVersion

PropertyTypeDescription
catalog_urlStringExample: https://gitlab.example.com/explore/catalog/my-namespace/my-component-project