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.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” id
required
integer
ID of user project
Example
1Request Body required
Section titled “ Request Body required ” Media type application/json
object
target_group_id
required
ID of target group
integer
Example
2Responses
Section titled “ Responses ”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