Skip to content

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]
}

API method documentation

enterprise
required
string

The slug version of the enterprise name.

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.

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"
}