Move File

Summary Moves a file to a new folder
Request https://www.digitalbucket.net/api/rest/movefile.axd?fileid=bd64d349-d584-45f3-a0fb-287bcb66fb34&targetfolderid=64
Method POST
Parameters fileid (id of the file you want to move), targetfolderid (id of the folder you want to move the file to)

Success

<Success>
  <Code>24</Code>
  <Message>file moved successfully.</Message>
</Success>

Error

<Error>
  <Code>-206</Code>
  <Message>You are not allowed to move this file.</Message>
</Error>
<Error>
  <Code>-207</Code>
  <Message>You do not have the required permission to move this file.</Message>
</Error>
<Error>
  <Code>-226</Code>
  <Message>Cannot move to this type of folder.</Message>
</Error>
<Error>
  <Code>-227</Code>
  <Message>[filename] is not an image and cannot be moved to a photo album.</Message>
</Error>
<Error>
  <Code>-228</Code>
  <Message>Shared files cannot be moved to the Recycle Bin.</Message>
</Error>
<Error>
  <Code>-229</Code>
  <Message>A file with the same name already exists.</Message>
</Error>

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