pat_grant_requests
Overview
Name | pat_grant_requests |
Type | Resource |
Id | github.orgs.pat_grant_requests |
Fields
Name | Datatype | Description |
---|---|---|
id | integer | Unique identifier of the request for access via fine-grained personal access token. The pat_request_id used to review PAT requests. |
created_at | string | Date and time when the request for access was created. |
owner | object | A GitHub user. |
permissions | object | Permissions requested, categorized by type of permission. |
reason | string | Reason for requesting access. |
repositories_url | string | URL to the list of repositories requested to be accessed via fine-grained personal access token. Should only be followed when repository_selection is subset . |
repository_selection | string | Type of repository selection requested. |
token_expired | boolean | Whether the associated fine-grained personal access token has expired. |
token_expires_at | string | Date and time when the associated fine-grained personal access token expires. |
token_last_used_at | string | Date and time when the associated fine-grained personal access token was last used for authentication. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
list_pat_grant_requests | SELECT | org | Lists requests from organization members to access organization resources with a fine-grained personal access token. Only GitHub Apps can call this API, using the organization_personal_access_token_requests: read permission.Note: Fine-grained PATs are in public beta. Related APIs, events, and functionality are subject to change. |
review_pat_grant_request | EXEC | org, pat_request_id, data__action | Approves or denies a pending request to access organization resources via a fine-grained personal access token. Only GitHub Apps can call this API, using the organization_personal_access_token_requests: write permission.Note: Fine-grained PATs are in public beta. Related APIs, events, and functionality are subject to change. |
review_pat_grant_requests_in_bulk | EXEC | org, data__action | Approves or denies multiple pending requests to access organization resources via a fine-grained personal access token. Only GitHub Apps can call this API, using the organization_personal_access_token_requests: write permission.Note: Fine-grained PATs are in public beta. Related APIs, events, and functionality are subject to change. |