Revoke service account secret
POST/orgs/:orgId/service-accounts/:saId/secrets/:secretId/revoke
Revokes the client secret identified by the given secretId so it can no longer be exchanged for an access token. Access tokens already issued with the secret stay valid until they expire. Revoking a secret that is already revoked returns it unchanged. Returns 409 if the secret has already expired. This action cannot be undone. Available only when service account credentials are enabled for the organization; otherwise returns 404. Requires the organization:write permission.
Request
Responses
- 200
- 400
- 403
- 404
- 409
OK
Bad request
Operation not allowed
Service account or secret not found, or service account credentials are not enabled for this organization
The secret has already expired