Skip to main content

pat_grant_requests

Overview

Namepat_grant_requests
TypeResource
Idgithub.orgs.pat_grant_requests

Fields

NameDatatypeDescription
idintegerUnique identifier of the request for access via fine-grained personal access token. The pat_request_id used to review PAT requests.
created_atstringDate and time when the request for access was created.
ownerobjectA GitHub user.
permissionsobjectPermissions requested, categorized by type of permission.
reasonstringReason for requesting access.
repositories_urlstringURL 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_selectionstringType of repository selection requested.
token_expiredbooleanWhether the associated fine-grained personal access token has expired.
token_expires_atstringDate and time when the associated fine-grained personal access token expires.
token_last_used_atstringDate and time when the associated fine-grained personal access token was last used for authentication.

Methods

NameAccessible byRequired ParamsDescription
list_pat_grant_requestsSELECTorgLists 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_requestEXECorg, pat_request_id, data__actionApproves 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_bulkEXECorg, data__actionApproves 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.