Copy Folder

Summary Copies a folder and its content to the target folder
Request https://www.digitalbucket.net/api/rest/copyfolder.axd?folderid=64&targetfolderid=92
Method POST
Parameters folderid (id of the folder you want to copy), targetfolderid (id of the folder you want to copy the folder to)

Success

<Success>
  <Code>35</Code>
  <Message>folder copied successfully.</Message>
</Success>

Error

<Error>
  <Code>-307</Code>
  <Message>You are not allowed to copy this folder.</Message>
</Error>
<Error>
  <Code>-308</Code>
  <Message>You do not have the required permission to copy this folder.</Message>
</Error>
<Error>
  <Code>-310</Code>
  <Message>Your plan does not allow copying files and folders.</Message>
</Error>
<Error>
  <Code>-336</Code>
  <Message>Photo albums cannot have child folders.</Message>
</Error>
<Error>
  <Code>-337</Code>
  <Message>Cannot copy folder to the Recycle Bin.</Message>
</Error>
<Error>
  <Code>-338</Code>
  <Message>Cannot copy a folder to one of its children.</Message>
</Error>
<Error>
  <Code>-339</Code>
  <Message>A folder with the same name already exists in the target folder.</Message>
</Error>
<Error>
  <Code>-340</Code>
  <Message>Cannot copy a folder of type [foldertype].</Message>
</Error>
<Error>
  <Code>-341</Code>
  <Message>Cannot copy folder [foldername] with child folders to the gallery.</Message>
</Error>
<Error>
  <Code>-342</Code>
  <Message>Cannot copy folder [foldername] to the Photo Gallery because it contains other files.</Message>
</Error>

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