dependabot
Set the default repository access level for Dependabot in an enterprise
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.
[!NOTE] The "Enterprise administration" fine-grained permission is not available to callers. To use this API, you must use an OAuth app token or a personal access token (classic).
put/enterprises/{enterprise}/dependabot/repository-access/default-level
Request
- Base URL: https://api.github.com
- URL: https://api.github.com/enterprises/{enterprise}/dependabot/repository-access/default-level
- Auth: none declared
Path parameters
enterprisestring required
The slug version of the enterprise name.
Request body
Example request
{
"default_level": "internal"
}Response
Response
Changes
No recorded changes to this operation across all 23 revisions of this API.