/documents/{docPath}/revertTo - 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 Note: Collection
separators "/" must be encoded as "%7C".
|
Query string parameters
| Field | Description |
|---|---|
| Document revision for reversion |
Request field
| Field | Type | Description |
|---|---|---|
|
Information required to revert the document |
Possible response
| HTTP Status | Description |
|---|---|
|
200 |
The operation completed successfully |
|
401 |
There is no session or the session is invalid |
Results field
| Field | Type | Description |
|---|---|---|
| String |
The results field is empty for a successful reversion operation |
Note: The
revertTo 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 reversion, you must call the /documents/{docPath}/newVersion - Check In Document method. This process makes sure
the revert operation results in a valid document. If the process cannot complete the
Check In Document method, you must call the /documents/{docPath}/lockState - Unlock document and revert edits method, and the document returns to its original state.