Update a pre-receive environment
You cannot modify the default environment. If you attempt to modify the default environment, you will receive a 422 Unprocessable Entity
response.
Path Parameters
Body
application/json
Body
This pre-receive environment’s new name.
URL from which to download a tarball of this environment.
Response
application/json
Response
Response
pre-receive-environment
Show Child Parameters
Path Parameters
Body
Delete a pre-receive environment
If you attempt to delete an environment that cannot be deleted, you will receive a 422 Unprocessable Entity
response.
The possible error messages are:
- Cannot modify or delete the default environment
- Cannot delete environment that has hooks
- Cannot delete environment when download is in progress
Path Parameters
Response
Response
Response
Path Parameters
Start a pre-receive environment download
Triggers a new download of the environment tarball from the environment’s image_url
. When the download is finished, the newly downloaded tarball will overwrite the existing environment.
If a download cannot be triggered, you will receive a 422 Unprocessable Entity
response.
The possible error messages are:
- Cannot modify or delete the default environment
- Can not start a new download when a download is in progress
Path Parameters
Response
application/json
Response
Response
pre-receive-environment-download-status
Path Parameters
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