Skip to content

Authorize Debian package upload

PUT
/api/v4/projects/{id}/packages/debian/{file_name}/authorize

This feature was introduced in GitLab 13.5

id
required
One of:
string

The ID or URL-encoded path of the project

file_name
required
string
/^(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\n\uD800-\uDFFF])*\.(deb|udeb|ddeb)$/

The filename

Example
example_1.0.0~alpha2_amd64.deb
Media type application/json
object
distribution

The Debian Codename or Suite

string
nullable /(?:^(?:[0-9A-Za-z\u017F\u212A][\x2D.0-9A-Za-z\u017F\u212A]*)$)/
component
required

The Debian Component

string
nullable /^(?:[0-9A-Za-z\u017F\u212A][\x2D.0-9A-Za-z\u017F\u212A]*)$/
Example generated
{
"distribution": "example",
"component": "example"
}

OK

Bad Request

Unauthorized

Forbidden

Not Found