Skip to content

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

API method documentation

org
required
string

The organization name. The name is not case sensitive.

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