provider apps PUT /app/installations/{installation_id}/suspended
@utdk/github /app/installations/{installation_id}/suspended
Suspend an app installation
Suspends a GitHub App on a user, organization, or enterprise account, which blocks the app from accessing the account's resources. When a GitHub App is suspended, the app's access to the GitHub API or webhook events is blocked for that account. You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.
installation_id path required
The unique identifier of the installation.
integer

Try it

Authentication
Configure credentials for GitHub v3 REST API
apps.suspendInstallation
PUT/app/installations/{installation_id}/suspended
Suspends a GitHub App on a user, organization, or enterprise account, which blocks the app from accessing the account's resources. When a GitHub App is suspended, the app's access to the GitHub API or webhook events is blocked for that account. You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.

Parameters

required

The unique identifier of the installation.

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.suspendInstallation()