Create a pre-receive hook
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. default: disabled
Whether enforcement can be overridden at the org or repo level. default: false
Response
201 application/json
Response
Response
pre-receive-hook
Show Child Parameters
Show Child Parameters
Body
Get a pre-receive hook
Path Parameters
pre_receive_hook_id parameter
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