dependabot

Updates Dependabot's repository access list for an organization

Changed on

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.

OAuth app tokens and personal access tokens (classic) need the write:org scope to use this endpoint.

Example request body:

{
  "repository_ids_to_add": [123, 456],
  "repository_ids_to_remove": [789]
}
patch/orgs/{org}/dependabot/repository-access

Request

  • Base URL: https://api.github.com
  • URL: https://api.github.com/orgs/{org}/dependabot/repository-access
  • Auth: none declared

Path parameters

orgstring required

The organization name. The name is not case sensitive.

Request body

repository_ids_to_addinteger[]

List of repository IDs to add.

repository_ids_to_removeinteger[]

List of repository IDs to remove.

Example request

{
  "repository_ids_to_add": [
    123,
    456
  ],
  "repository_ids_to_remove": [
    789
  ]
}

Response

Response

Changes