Version 4.0.24.20 (latest)
Reset a project to the revision of the project that is in production.
DANGER this will delete any changes that have not been pushed to a remote repository.
Request
POST
/projects/{project_id}/reset_to_production
Datatype
Description
Request
path
Expand HTTP Path definition...
project_id
Id of project
Response
200: Project
Datatype
Description
(string)
204: Returns 204 if project was successfully reset, otherwise 400 with an error message
400: Bad Request
Datatype
Description
(object)
message
lock
Error details
documentation_url
lock
Documentation link
404: Not Found
Datatype
Description
(object)
message
lock
Error details
documentation_url
lock
Documentation link
422: Validation Error
Datatype
Description
(object)
message
lock
Error details
errors
Expand ValidationErrorDetail definition...
field
lock
Field with error
code
lock
Error code
message
lock
Error info message
documentation_url
lock
Documentation link
documentation_url
lock
Documentation link
429: Too Many Requests
Datatype
Description
(object)
message
lock
Error details
documentation_url
lock
Documentation link