Our Community is in read-only mode until April 8th, learn more here. You can still search existing threads or get help via Dropbox Support, the Dropbox Help Center, or Learn.
Forum Discussion
Greg-DB
Dropbox Community Moderator
9 years agoRe: API V2 nightmares......... /move I cannot seem to move anyfolders inside any files or root
Hi Michael, the /copy and /move endpoints on the Dropbox API expect the "to_path" parameter to be the full path where you want to put the item specified by the "from_path" parameter. So, if you want to move folder1 into folder2, your "to_path" should be "/14a148a2-21bd-4e95-a16a-82081a6f9504/folder2/folder1".
As is, your request is saying you want to copy folder1 to "/14a148a2-21bd-4e95-a16a-82081a6f9504/folder2", and the API error is indicating that something already exists there.
Also, note that you said you want to move the folder, but your code is using the /2/files/copy endpoint. Moving files or folders is done via /2/files/move.
1 Reply
Replies have been turned off for this discussion
- michaelwjoyner9 years agoHelpful | Level 5Thanks,
It was me. I need to make the "to" "/folder2/folder1" not "/folder"
THANKS GREG!!!!!!!
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!