Skip to content

Create a project alias

POST
/api/v4/project_aliases

Creates a project alias.

Media type application/json
object
project_id
required

The ID or URL-encoded path of the project

string
nullable
Example
gitlab-org/gitlab
name
required

The alias of the project

string
nullable
Example
gitlab

Created

Media type application/json
object
id
integer format: int64
project_id
integer format: int64
name
string
Example
{
"id": 1,
"project_id": 1,
"name": "gitlab"
}

Bad request

Forbidden

Not found