I am trying to move some files from one folder to another.
This is my curl request:
curl -X POST https://api.dropboxapi.com/2/files/move \
--header 'Authorization: Bearer faketokenjskahdLDAKHDALjdj8287ew98ehsahdkkadjhk' \
--header 'Content-Type: application/json' \
--data '{"from_path":"/folder1","to_path":"/folder2/folder2.1"}'
Whenever I call it I get this reponse:
{
"error_summary": "to/conflict/folder/...",
"error": {
".tag": "to",
"to": {
".tag": "conflict",
"conflict": {
".tag": "folder"
}
}
}
}
The docs say the following about the specific key words in the response:
conflict : Couldn't write to the target path because there was something in the way.
folder: There's a folder in the way.
How can there be a folder in the way? What does this even mean? I'm not sure what to do to solve this issue.
Docs for the /move endpoint can be found here
/folder2/folder2.1. Is that not true?