apps
Grant repository access to an organization installation
Grant repository access to an organization installation. You can add up to 50 repositories at a time. If the installation already has access to the repository, it will not be added again.
This API can only be called by a GitHub App installed on the enterprise that owns the organization.
patch/enterprises/{enterprise}/apps/organizations/{org}/installations/{installation_id}/repositories/add
Path parameters
enterprisestring required
The slug version of the enterprise name.
orgstring required
The organization name. The name is not case sensitive.
installation_idinteger required
The unique identifier of the installation.
Request body
Response
A list of repositories which the authenticated GitHub App should be granted access to.
Example response
[
{
"id": 1,
"name": "Team Environment",
"full_name": "octocat/Hello-World"
}
]