Use this API to upload RPM packages to the package registry.

Upload a RPM package

POST /api/v4/projects/{id}/packages/rpm

This feature was introduced in GitLab 15.7

Parameters

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

Responses

CodeDescriptionSchema
201Created—
400Bad Request—
401Unauthorized—
403Forbidden—
404Not Found—

Authorize package upload from workhorse

POST /api/v4/projects/{id}/packages/rpm/authorize

This feature was introduced in GitLab 15.7

Parameters

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

Responses

CodeDescriptionSchema
201Created—
400Bad Request—
401Unauthorized—
403Forbidden—
404Not Found—

Download repository metadata files

GET /api/v4/projects/{id}/packages/rpm/repodata/{file_name}

This feature was introduced in GitLab 15.7

Parameters

NameTypeDescription
id
Path, required
String or integerThe ID or URL-encoded path of the project
file_name
Path, required
StringRepository metadata file name

Responses

CodeDescriptionSchema
200OK—
400Bad Request—
401Unauthorized—
403Forbidden—
404Not Found—

Download RPM package files

GET /api/v4/projects/{id}/packages/rpm/{package_file_id}/{file_name}

This feature was introduced in GitLab 15.7

Parameters

NameTypeDescription
id
Path, required
String or integerThe ID or URL-encoded path of the project
package_file_id
Path, required
IntegerRPM package file id
file_name
Path, required
StringRPM package file name

Responses

CodeDescriptionSchema
200OK—
400Bad Request—
401Unauthorized—
403Forbidden—
404Not Found—