pre_receive_hook_id parameter
Get a pre-receive hook
Path Parameters
Response
200 application/json
Response
Response
pre-receive-hook
Show Child Parameters
Show Child Parameters
Path Parameters
Update a pre-receive hook
Path Parameters
pre_receive_hook_id parameter
Body
application/json
Body
The name of the hook.
The script that the hook runs.
The GitHub repository where the script is kept.
The pre-receive environment where the script is executed.
The state of enforcement for this hook.
Whether enforcement can be overridden at the org or repo level.
Response
200 application/json
Response
Response
pre-receive-hook
Show Child Parameters
Show Child Parameters
Path Parameters
Body
Delete a pre-receive hook
Path Parameters
pre_receive_hook_id parameter
Response
204
Response
Response
Path Parameters
List personal access tokens
Lists personal access tokens for all users, including admin users.
Query Parameters
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
Response
200 application/json
Response
Response
The authorization for an OAuth app, GitHub App, or a Personal Access Token.
A list of scopes that this authorization is in.
Show Child Parameters
Simple User
Show Child Parameters
Show Child Parameters
Query Parameters
Delete a personal access token
Deletes a personal access token. Returns a 403 - Forbidden
status when a personal access token is in use. For example, if you access this endpoint with the same personal access token that you are trying to delete, you will receive this error.
Path Parameters
Response
204
Response
Response