github-app
Claim Bot Installation Endpoint
Claim a single bot installation for the signed-in user.
- account_type=User: claimed if account_login matches the user's github_username. (Personal installs are also auto-claimed on /auth/sync — this endpoint is the manual fallback.)
- account_type=Organization: requires the user to be an admin of the org, verified via GET /orgs/{org}/memberships/{user} using the user's GitHub OAuth provider token (passed in the request body as provider_token or in the X-GitHub-Token header).
post/github-app/claim-bot-installation/{installation_id}
Path parameters
installation_idinteger required
Response
Successful Response
{"stackTrail":"paths:/github-app/claim-bot-installation/{installation_id}:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}
Changes
No recorded changes to this endpoint across all 1 revision of this API.