Suspends a GitHub App on a user, organization, or business account, which blocks the app from accessing the account's resources. When a GitHub App is suspended, the app's access to the GitHub Enterprise Server API or webhook events is blocked for that account.You must use a JWT to access this endpoint.
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
Path 参数
返回响应
🟢204Response
application/json
Body
🟠404404
请求示例请求示例
Shell
JavaScript
Java
Swift
curl--location--request PUT 'https://api.github.com/app/installations//suspended' \
--header'Authorization: Bearer <token>'