---
title: "Updates Dependabot's repository access list for an organization"
method: PATCH
path: "/orgs/{org}/dependabot/repository-access"
tags: ["dependabot"]
---

# Updates Dependabot's repository access list for an organization

`PATCH /orgs/{org}/dependabot/repository-access`

Updates repositories according to the list of repositories that organization admins have given Dependabot access to when they've updated dependencies.

> [!NOTE]
>    This operation supports both server-to-server and user-to-server access.
Unauthorized users will not see the existence of this endpoint.

**Example request body:**
```json
{
  "repository_ids_to_add": [123, 456],
  "repository_ids_to_remove": [789]
}
```

## Path parameters

- `org` string, required

## Request body

- object
  - `repository_ids_to_add` integer[] — List of repository IDs to add.
  - `repository_ids_to_remove` integer[] — List of repository IDs to remove.

## Response `204`

Response

## Other responses

- `403` — Forbidden
- `404` — Resource not found

---

[API](https://skmtc.net/github/apis/github-v3-rest-api.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api/versions/a367f7028301/schema)
