PUT/user/installations/{installation_id}/repositories/{repository_id}

Add a repository to an app installation

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.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

2 parameters
installation_idintegerrequired
The unique identifier of the installation.
repository_idintegerrequired
The unique identifier of the repository.

4 status codes
204Response
304Not modified
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.

Was this helpful?