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's avatar
tragicdev
New member | Level 2
3 years ago

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 ...
  • Greg-DB's avatar
    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.