Restoring a Document to a Snapshot

Restores the document to the state corresponding to the given snapshot.

Request

PUT <webiURL>/documents/{documentId}?snapshotId={snapshotId}

Where:

  • {documentId} is the document identifier retrieved from the list of documents
  • {snapshotId} is the snapshot identifier retrieved from the list of snapshots
Response

Response type: application/xml or application/json

The response is a message stating the success or failure of the request.

Example

PUT <webiURL>/documents/5022?snapshotId=we00000000e5df6062ca2a

<success>
    <message>The resource of type 'Document' with identifier '5022' has been successfully updated.</message>
    <id>5022</id>
</success>