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
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

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.

Enter a gateway URL 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()