Rollback To File Version

Summary Rolls back to the specified version of the file
Request https://www.digitalbucket.net/api/rest/rollbacktofileversion.axd?fileid=bd64d349-d584-45f3-a0fb-287bcb66fb34&versionid=a1e9535d-13cb-41fd-b99b-7cda7f237643
Method POST
Parameters fileid (id of the file you want to change the version), versionid (id of the version you want to rollback)

Success

<Success>
  <Code>72</Code>
  <Message>file rolleback done successfully.</Message>
</Success>

Error

<Error>
  <Code>-204</Code>
  <Message>You are not allowed to access this file.</Message>
</Error>
<Error>
  <Code>-44</Code>
  <Message>[filename] is locked by another user. A locked file cannot be altered.</Message>
</Error>
<Error>
  <Code>-233</Code>
  <Message>This version of the file does not exist.</Message>
</Error>

- For other errors refer to the list of Common Errors.