Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
Hippo M.
9 years agoNew member | Level 1
folder in the way conflict/error when using /move API endpoint
Getting a not very intuitive error whenever I try to move files from one folder to another using the API. Please check out my full question in stackoverflow here: http://stackoverflow.com/questions/3...
Greg-DB
Dropbox Community Moderator
9 years agoIt looks like you already got this working.
For reference, the /move endpoint lets you move items, be it files or folders. Both the to_path and from_path must specify the full, exact path of the existing item and the new desired path, respectively. If you wanted to move an entire folder, which is currently at /folder1, to be a folder at named folder2.1, inside a folder at /folder2, you need to make sure there isn't already a folder at /folder2/folder2.1 (even if the existing folder2.1 is empty).
Alternatively, to move all of the contents of a folder from one folder to another, you have to loop through to move each item as desired, like you described in your answer.
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!