Lock File

Summary Locks a file and does not allow any modifications
Request https://www.digitalbucket.net/api/rest/lockfile.axd?fileid=bd64d349-d584-45f3-a0fb-287bcb66fb34
Method POST
Parameters fileid (id of the file you want to lock)

Success

<Success>
  <Code>27</Code>
  <Message>file locked successfully.</Message>
</Success>

Error

<Error>
  <Code>-201</Code>
  <Message>You are not allowed to access this file.</Message>
</Error>
<Error>
  <Code>-44</Code>
  <Message>[filename] is already locked by another user.</Message>
</Error>

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