Get the download status for a pre-receive environment
In addition to seeing the download status at the “Get a pre-receive environment” endpoint, there is also this separate endpoint for just the download status.
Path Parameters
Response
200 application/json
Response
Response
pre-receive-environment-download-status
Path Parameters
List pre-receive hooks
Query Parameters
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
One of asc
(ascending) or desc
(descending).
Allowed values:ascdesc
Default:desc
One of created
(when the repository was starred) or updated
(when it was last pushed to) or name
.
Allowed values:createdupdatedname
Default:created
Response
200 application/json
Response
Response
Show Child Parameters
Show Child Parameters
Query Parameters
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