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 Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
target_group_id
required
ID of target group
integer
Example
2Responses
Section titled “Responses”Created
Media typeapplication/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