v56

latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-08-011,21696712.2 MB
dependabot

Updates Dependabot's repository access list for an enterprise

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]
}
patch/enterprises/{enterprise}/dependabot/repository-access

Path parameters

enterprisestring required

The slug version of the enterprise name.

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