PATCH
/enterprises/{enterprise}/dependabot/repository-accessUpdates 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]
}
[!NOTE] The "Enterprise administration" fine-grained permission is not available to callers. To use this API, you must use an OAuth app token or a personal access token (classic).
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
enterprisestringrequired
The slug version of the enterprise name.
repository_ids_to_addarray<integer>optional
List of repository IDs to add.
repository_ids_to_removearray<integer>optional
List of repository IDs to remove.
204Response
403Forbidden
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
404Resource not found
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
Error handling
A 403 is returned: Forbidden. A 404 is returned: Resource not found.