Skip to content

Update the CI/CD job token access settings for a project

PATCH
/api/v4/projects/{id}/job_token_scope

Updates the Authorized groups and projects setting (job token scope) of a specified project.

id
required
One of:
string

The ID or URL-encoded path of the project

Media type application/json
object
enabled
required

Indicates CI/CD job tokens generated in other projects have restricted access to this project.

boolean
nullable
Example generated
{
"enabled": true
}

No Content

Bad Request

Unauthorized

Forbidden

Not found