Add a repository to an app installation
PUT
/user/installations/{installation_id}/repositories/{repository_id}
Add a single repository to an installation. The authenticated user must have admin access to the repository.
This endpoint only works for PATs (classic) with the repo scope.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”installation_id
required
integer
The unique identifier of the installation.
Examples
Exampledefault
1repository_id
required
integer
The unique identifier of the repository.
Responses
Section titled “Responses”Response
Not modified
Forbidden
Media typeapplication/json
Basic Error
Basic Error
object
message
string
documentation_url
string
url
string
status
string
Examplegenerated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}Resource not found
Media typeapplication/json
Basic Error
Basic Error
object
message
string
documentation_url
string
url
string
status
string
Examplegenerated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}