Github API

Getting access, Developing, Testing

Back to Github

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 call this API, using the organization_personal_access_tokens: write permission.

Note: Fine-grained PATs are in public beta. Related APIs, events, and functionality are subject to change.

Input

type: object properties: parameters: type: object properties: org: type: string description: The organization name. The name is not case sensitive. required: - org title: Parameters data: type: object properties: action: type: string description: Action to apply to the fine-grained personal access token. enum: - revoke pat_ids: description: The IDs of the fine-grained personal access tokens. type: array minItems: 1 maxItems: 100 items: type: integer description: Unique identifier of the fine-grained personal access token. title: Data

Output

type: object