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.
Code snippet
Updates live as you fill in the form above.
TypeScript
import github from '@utdk/github';
await github.apps.addRepoToInstallationForAuthenticatedUser()