v56

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

Update the access to organization resources via fine-grained personal access tokens

Updates the access organization members have to organization resources via fine-grained personal access tokens. Limited to revoking a token's existing access.

Only GitHub Apps can use this endpoint.

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

Path parameters

orgstring required

The organization name. The name is not case sensitive.

Request body

action'revoke' required

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

pat_idsinteger[] required

The IDs of the fine-grained personal access tokens.

Response

Accepted

object required