Revert project to a previous revision
POST/nevisadmin/api/v1/projects/:projectKey/revision-revert/:commitId
Required permission: MODIFY_PROJECT on the project, or higher scope
Schedules a job that reverts the project to the given commit on the remote repository. The project must already be published and must be on the head of the remote branch. Reverting a revision project is not allowed.
Request
Responses
- 202
- 400
- 403
- 404
- 409
Revert job accepted
Invalid project key, missing commit id, the project has not been published yet, or the project is itself a revision
Insufficient permissions.
Project or commit not found
Local commit id does not match the remote head