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

## Changes

> 62 revisions in range; 2 could not be searched.

- **2026-04-22** `4f8650335442` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/github/apis/enterprise-cloud/changes/enterprises/:enterprise/dependabot/repository-access/default-level/put.md)

---

[API](https://skmtc.dev/github/apis/enterprise-cloud.md) · [All operations](https://skmtc.dev/github/apis/enterprise-cloud/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/github/enterprise-cloud/revisions/6020c72ba337/schema)
