Skip to content

Add a group to a CI/CD job token allowlist

POST
/api/v4/projects/{id}/job_token_scope/groups_allowlist

Adds a group to the CI/CD job token allowlist of a specified project.

id
required
integer

ID of user project

Example
1
Media type application/json
object
target_group_id
required

ID of target group

integer
nullable
Example
2

Created

Media type application/json
object
id
integer format: int64
web_url
string
name
string
Example
{
"web_url": "http://gitlab.example.com/groups/diaspora",
"name": "Diaspora"
}

Bad Request

Unauthorized

Forbidden

Not found

Unprocessable entity