Skip to content

Latest commit

 

History

History
44 lines (34 loc) · 1.21 KB

addRepoToInstallation.md

File metadata and controls

44 lines (34 loc) · 1.21 KB
name example route scope type
Add a repository to an app installation
octokit.apps.addRepoToInstallation({ installation_id, repository_id })
PUT /user/installations/{installation_id}/repositories/{repository_id}
apps
API method

Add a repository to an app installation

Add a single repository to an installation. The authenticated user must have admin access to the repository.

You must use a personal access token (which you can create via the command line or Basic Authentication) to access this endpoint.

octokit.apps.addRepoToInstallation({
  installation_id,
  repository_id,
});

Parameters

name required description
installation_idyes

installation_id parameter

repository_idyes

See also: GitHub Developer Guide documentation.