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

# Updates Dependabot's repository access list for an enterprise

`PATCH /enterprises/{enterprise}/dependabot/repository-access`

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

The authenticated user must be an enterprise owner to use this endpoint.

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

## Path parameters

- `enterprise` 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/rest-api.md) · [All operations](https://skmtc.net/github/apis/rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/rest-api/versions/80850db290cd/schema)
