---
title: "Set the default repository access level for Dependabot in an enterprise"
method: PUT
path: "/enterprises/{enterprise}/dependabot/repository-access/default-level"
tags: ["dependabot"]
---

# Set the default repository access level for Dependabot in an enterprise

`PUT /enterprises/{enterprise}/dependabot/repository-access/default-level`

Sets the default level of repository access Dependabot will have while performing an update across organizations in the enterprise. Available values are:
- 'public' - Dependabot will only have access to public repositories, unless access is explicitly granted to non-public repositories.
- 'internal' - Dependabot will only have access to public and internal repositories, unless access is explicitly granted to private repositories.

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

## Path parameters

- `enterprise` string, required

## Request body

- object
  - `default_level` 'public' | 'internal', required — The default repository access level for Dependabot updates.

## 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)
