---
title: "Update the CI/CD job token access settings for a project"
method: PATCH
path: "/api/v4/projects/{id}/job_token_scope"
tags: ["projects_job_token_scope"]
---

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

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

## Request

- Base URL: `https://gitlab.com`
- URL: `https://gitlab.com/api/v4/projects/{id}/job_token_scope`
- Auth: none declared

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

## Path parameters

- `id` string, required

## Request body

- PatchApiV4ProjectsIdJobTokenScope: Update the CI/CD job token access settings for a project
  - `enabled` boolean, required: Indicates CI/CD job tokens generated in other projects have restricted access to this project.

## Response `204`

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

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found

---

[API](https://skmtc.dev/gitlab/apis/gitlab-api.md) - [All operations](https://skmtc.dev/gitlab/apis/gitlab-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gitlab/apis/gitlab-api/revisions/b234947ef3f2?raw)
