Move Folder

Summary Changes the parent of a folder to a new one
Request https://www.digitalbucket.net/api/rest/movefolder.axd?folderid=64&targetfolderid=92
Method POST
Parameters folderid (id of the folder you want to move), targetfolderid (id of the folder you want to move the folder to)

Success

<Success>
  <Code>34</Code>
  <Message>folder moved successfully.</Message>
</Success>

Error

<Error>
  <Code>-305</Code>
  <Message>You are not allowed to move this folder.</Message>
</Error>
<Error>
  <Code>-306</Code>
  <Message>You do not have the required permission to move this folder.</Message>
</Error>
<Error>
  <Code>-329</Code>
  <Message>Photo albums cannot have child folders.</Message>
</Error>
<Error>
  <Code>-330</Code>
  <Message>Cannot move a folder to one of its children.</Message>
</Error>
<Error>
  <Code>-331</Code>
  <Message>A folder with the same name already exists.</Message>
</Error>
<Error>
  <Code>-332</Code>
  <Message>Cannot move a folder of type [foldertype].</Message>
</Error>
<Error>
  <Code>-333</Code>
  <Message>Cannot move folder [foldername] with child folders to the gallery.</Message>
</Error>
<Error>
  <Code>-334</Code>
  <Message>Cannot move folder [foldername] to the Photo Gallery because it contains other files.</Message>
</Error>
<Error>
  <Code>-335</Code>
  <Message>Shared folders cannot be moved to the Recycle Bin.</Message>
</Error>

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