provider apps PUT /user/installations/{installation_id}/repositories/{repository_id}
@utdk/github /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.
installation_id path required
The unique identifier of the installation.
integer
repository_id path required
The unique identifier of the repository.
integer

Try it

Authentication
Configure credentials for GitHub v3 REST API
apps.addRepoToInstallationForAuthenticatedUser
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

required

The unique identifier of the installation.

required

The unique identifier of the repository.

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import github from '@utdk/github';

await github.apps.addRepoToInstallationForAuthenticatedUser()