CARVIEW |
This content may be out of date. For the newest content, see the API posts on the GitHub Blog.
All of GitHub's Docs are now in one place! You can see Apps, REST API, and GraphQL API on GitHub Docs.
Suspending GitHub App installations
- May 1, 2020
-
tarebyte
Before you could suspend a GitHub App, if an organization admin or user wanted to temporarily block an app's access to their repositories' resources, they could only uninstall the GitHub App completely. This has been particularly challenging for large organizations that may need thousands of people to reauthorize an app.
Now you can suspend a GitHub App's access to your resources for as long as you need and unsuspend the app's access when you're ready. When you suspend a GitHub App you've installed, the app cannot access your resources, the GitHub API, or webhook events.
The integrator who owns and maintains a GitHub app, also called a GitHub App owner, can suspend or unsuspend a GitHub App installation using these REST API endpoints with a JWT:
PUT /app/installations/:installation_id/suspended
DELETE /app/installations/:installation_id/suspended
People who have installed a GitHub App, also called installation owners, can suspend or unsuspend a GitHub App through their app's installation settings. Before people can suspend a GitHub app installation, the GitHub App owner must opt-in to the beta release. For more information, see "Suspending a GitHub App installation."
Recent Posts
- Antiope preview graduation
October 1, 2020 - Machine-man and sailor-v previews graduate
August 20, 2020 - GitHub Actions API - Introducing workflow usage endpoints
May 15, 2020 - Introducing the skipped check run and check suite conclusion
May 8, 2020 - Suspending GitHub App installations
May 1, 2020 - Expiring user-to-server access tokens for GitHub Apps
April 30, 2020 - Replacing the GitHub Apps "Creating an installation access token" endpoint
April 15, 2020 - Replacing the integration_installation and integration_installation_repositories webhook events
April 15, 2020