Revoke one of a service account's API tokens
DELETE/organizations/:organization_id/users/:user_id/tokens/:token_id
Deletes one API token of a client-managed service account, identified by the identifier returned by GET .../tokens. The token stops working immediately. The target must be client-managed (401 otherwise) and the token must belong to it.
Requires user:write, an enterprise organization, and at least the org-admin role.
Request
Responses
- 200
- 400
- 401
- 404
The revoked token's metadata
An ID is not a valid integer
Caller lacks permission, the target is not a client-managed user, or the token belongs to another user
Organization, user or token not found