Updates Dependabot's repository access list for an organization
PATCH
/orgs/{org}/dependabot/repository-access
Updates repositories according to the list of repositories that organization admins have given Dependabot access to when they’ve updated dependencies.
[!NOTE] This operation supports both server-to-server and user-to-server access. Unauthorized users will not see the existence of this endpoint.
Example request body:
{
"repository_ids_to_add": [123, 456],
"repository_ids_to_remove": [789]
}
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
repository_ids_to_add
List of repository IDs to add.
Array<integer>
repository_ids_to_remove
List of repository IDs to remove.
Array<integer>
Examples
Example with a 'succeeded' status.
Add repositories
{ "repository_ids_to_add": [ 123, 456 ]}Remove repositories
{ "repository_ids_to_remove": [ 789 ]}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"}