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]
}
Servers
- https://api.github.com
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
enterprise |
String | Yes |
The slug version of the enterprise name. |
Request headers
| Name | Type | Required | Description |
|---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
| Name | Type | Required | Description |
|---|---|---|---|
repository_ids_to_remove[] |
Array | No |
List of repository IDs to remove. |
repository_ids_to_add[] |
Array | No |
List of repository IDs to add. |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.