v56

latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-08-011,4581,08113.3 MB
orgs

Update the access a fine-grained personal access token has to organization resources

Updates the access an organization member has to organization resources via a fine-grained personal access token. Limited to revoking the token's existing access. Limited to revoking a token's existing access.

Only GitHub Apps can use this endpoint.

post/orgs/{org}/personal-access-tokens/{pat_id}

Path parameters

orgstring required

The organization name. The name is not case sensitive.

pat_idinteger required

The unique identifier of the fine-grained personal access token.

Request body

action'revoke' required

Action to apply to the fine-grained personal access token.

Response

A header with no content is returned.