Restore a version
POST/versions/:versionKey/restoration
Restores the file content to the state captured in this version. A new version is created representing the restored state, unless both the file's live content and its most recent version already match that exact content, in which case that version is returned and nothing is created. For element template files, the request body must include the target version number and a new version is always created.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 500
The version was restored successfully. Returns the newly created version, or the file's most recent version when both that version and the file's live content already matched this content.
The provided data is not valid.
The request lacks valid authentication credentials.
Response Headers
Forbidden. The request is not allowed.
The requested resource was not found.
A conflict occurred while processing the request.
An internal error occurred while processing the request.