provider dependabot PATCH /enterprises/{enterprise}/dependabot/repository-access
@utdk/github /enterprises/{enterprise}/dependabot/repository-access
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:** ```json { "repository_ids_to_add": [123, 456], "repository_ids_to_remove": [789] } ```
enterprise path required
The slug version of the enterprise name.
string

Try it

Authentication
Configure credentials for GitHub v3 REST API
dependabot.updateRepositoryAccessForEnterprise
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:** ```json { "repository_ids_to_add": [123, 456], "repository_ids_to_remove": [789] } ```

Parameters

required

The slug version of the enterprise name.

Input

List of repository IDs to add.

List of repository IDs to remove.

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import github from '@utdk/github';

await github.dependabot.updateRepositoryAccessForEnterprise()