Admin: revoke any user's personal access token by id
Changed onRevokes a token by id, scoped to the org's PAT client but not to a specific owning user — the admin counterpart to DELETE /personal-access-tokens/{tokenId}. Requires org-admin privileges (userAdminCheck); a non-admin caller gets 403 (ForbiddenError), same as GET /personal-access-tokens/admin.
Request
- Base URLhttps://app.pipeshub.com/api/v1
- URLhttps://app.pipeshub.com/api/v1/personal-access-tokens/admin/{tokenId}
- AuthHTTP bearer
Path parameters
Personal access token ID
Request body
Example request
{
"reason": "rotated"
}Response
Personal access token revoked successfully
Example response
{
"message": "Personal access token revoked successfully"
}Changes
- info
added the media type
application/x-www-form-urlencodedto the request body - info
added the non-success response with the status
- info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status
- info
- info
added the non-success response with the status
- info