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.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” org
required
string
The organization name. The name is not case sensitive.
Request Body required
Section titled “ Request Body required ” Media type application/json
object
default_level
required
The default repository access level for Dependabot updates.
string
Examples
Example 204
Example with a 'succeeded' status.
{ "default_level": "public"}Responses
Section titled “ Responses ”Response
Forbidden
Media type application/json
Basic Error
Basic Error
object
message
string
documentation_url
string
url
string
status
string
Example generated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}Resource not found
Media type application/json
Basic Error
Basic Error
object
message
string
documentation_url
string
url
string
status
string
Example generated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}