We're making changes to the Community, so you may have received some notifications - thanks for your patience and welcome back. Learn more here.
Forum Discussion
tragicdev
3 years agoNew member | Level 2
Attempt to rename drive file/folder “not found” (409)
After reading the documentation here to rename an item, I'm not sure why I am getting a “not found” (409). Here is the data of the item provided by https://api.dropboxapi.com/2/files/list_folder ...
- 3 years ago
The /2/file_requests/update endpoint is for updating "file requests", not actual files/folders.
To rename a file or folder, you should use /2/files/move_v2. When supplying the "id" of a file or folder, supply it exactly as given. That is, do not remove the "id:" prefix or otherwise modify the value. To rename a folder, you would pass in the "id" as the "from_path" parameter, and the new path/name as the "to_path" parameter.
Greg-DB
Dropbox Staff
The /2/file_requests/update endpoint is for updating "file requests", not actual files/folders.
To rename a file or folder, you should use /2/files/move_v2. When supplying the "id" of a file or folder, supply it exactly as given. That is, do not remove the "id:" prefix or otherwise modify the value. To rename a folder, you would pass in the "id" as the "from_path" parameter, and the new path/name as the "to_path" parameter.
tragicdev
3 years agoNew member | Level 2
Thank you! Confirmed this works.
Screenshot of response (200)
About Discuss Dropbox Developer & API
795 PostsLatest Activity: 3 days ago
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 or Facebook.
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!