Restoring a Document to a Snapshot

Usage

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

Request

PUT /documents/<documentID>?snapshotId=<snapshotID>

Response

Response type: application/xml or application/json

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

Example

PUT /documents/5022?snapshotId=we00000000e5df6062ca2a

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