Updates Dependabot's repository access list for an enterprise
PATCH
/enterprises/{enterprise}/dependabot/repository-access
Updates repositories according to the list of repositories that enterprise admins have given Dependabot access to when they’ve updated dependencies across organizations in the enterprise.
The authenticated user must be an enterprise owner to use 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”enterprise
required
string
The slug version of the enterprise name.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/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 typeapplication/json
Basic Error
Basic Error
object
message
string
documentation_url
string
url
string
status
string
Examplegenerated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}Resource not found
Media typeapplication/json
Basic Error
Basic Error
object
message
string
documentation_url
string
url
string
status
string
Examplegenerated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}