---
title: "Set the default repository access level for Dependabot"
method: PUT
path: "/orgs/{org}/dependabot/repository-access/default-level"
tags: ["dependabot"]
---

# Set the default repository access level for Dependabot

`PUT /orgs/{org}/dependabot/repository-access/default-level`

Sets the default level of repository access Dependabot will have while performing an update.  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.

Unauthorized users will not see the existence of this endpoint.

This operation supports both server-to-server and user-to-server access.

## Path parameters

- `org` 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/ghec.md) · [All operations](https://skmtc.net/github/apis/ghec/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/ghec/revisions/8ae6d0c8716e/schema)
