To revert a document to an older document version, you need to know the unique key of that older document version. You can accomplish this by getting a list of older document versions by calling the readChildDocuments method, then find the older version to revert back to from the list.
revert Parameter Descriptions
Parameter Name |
Data Type |
Description |
documentUniqueKey |
string |
Document file unique key that identifies the version of the document (for example the current version) to replace. |
oldKey |
string |
Document file unique key that identifies the version of the document to revert to (sets this file to the current version). |
None