Revert to a Previous Revision
Revert the document content to the content of a previous revision.
Note:
This method is new in 6.3
End-point
| POST | /documents/{docPath}/revertTo |
Path Parameters
| Field | Description |
|---|---|
|
Full path of the document in the repository. Collection separators "/" must be encoded as "%7C". |
Query String Parameters
| Field | Description |
|---|---|
| The revision to revert to. |
Request Fields
| Field | Type | Description |
|---|---|---|
|
Information required to revert the document. |
Possible Responses
| HTTP Status | Description |
|---|---|
|
200 |
The operation completed successfully. |
|
401 |
There is no session or the session is invalid. |
Results Fields
| Field | Type | Description |
|---|---|---|
| String | If the revert was successful, the results field will be empty. |
Note: The Revert To operation does not directly create the new revision. It checks out the document and updates its content with the content of the selected revision. To complete the revert, the Check In Document method must be called.This process ensures that the revert operation results in a valid document. If the Check In Document method cannot be completed, the Unlock Document (Revert Editing) method must be called, and the document will be returned to its original state.
