<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Attempt to rename drive file/folder “not found” (409) in Discuss Dropbox Developer &amp; API</title>
    <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Attempt-to-rename-drive-file-folder-not-found-409/m-p/558330#M2248</link>
    <description>&lt;P&gt;The /2/file_requests/update endpoint is for updating "&lt;A href="https://help.dropbox.com/files-folders/share/create-file-request" target="_self"&gt;file requests&lt;/A&gt;", not actual files/folders.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To rename a file or folder, you should use &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-move" target="_self"&gt;/2/files/move_v2&lt;/A&gt;. 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.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Nov 2021 21:52:30 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2021-11-17T21:52:30Z</dc:date>
    <item>
      <title>Attempt to rename drive file/folder “not found” (409)</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Attempt-to-rename-drive-file-folder-not-found-409/m-p/558326#M2247</link>
      <description>&lt;P&gt;After reading the documentation &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#file_requests-update" target="_self"&gt;here&lt;/A&gt; to rename an item, I'm not sure why I am getting a “not found” (409).&lt;BR /&gt;&lt;BR /&gt;Here is the data of the item provided by &lt;SPAN class=""&gt;https://&lt;/SPAN&gt;&lt;SPAN class=""&gt;api.dropboxapi.com&lt;/SPAN&gt;&lt;SPAN class=""&gt;/2/files/list_folder&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Screenshot of the list_folder API response&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tragicdev_0-1637182962772.png" style="width: 400px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/26214iD52DE61D8D1BE606/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tragicdev_0-1637182962772.png" alt="tragicdev_0-1637182962772.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Interesting that “id:” is prefixed in the string. As expected, I do get a 400 response because it does not match '[-_0-9a-zA-Z]+'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Going back to the requirements detailed in the docs, I took “id:” out to become “a_nxjuJ9zcUAAAAAAAAACQ”.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Screenshot of the request&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tragicdev_1-1637183105998.png" style="width: 400px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/26215i58659B06B784721A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tragicdev_1-1637183105998.png" alt="tragicdev_1-1637183105998.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get back this 409 response.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tragicdev_2-1637183526281.png" style="width: 400px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/26216i2034A37F85B9D624/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tragicdev_2-1637183526281.png" alt="tragicdev_2-1637183526281.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried removing “id:a” to “_nxjuJ9zcUAAAAAAAAACQ”, and when that didn't work, I removed “id:a_” and it still responded it couldn't be found. I thought perhaps because it's a folder, that's why, but even a PNG file could not be found/renamed either.&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 21:20:15 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Attempt-to-rename-drive-file-folder-not-found-409/m-p/558326#M2247</guid>
      <dc:creator>tragicdev</dc:creator>
      <dc:date>2021-11-17T21:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: Attempt to rename drive file/folder “not found” (409)</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Attempt-to-rename-drive-file-folder-not-found-409/m-p/558330#M2248</link>
      <description>&lt;P&gt;The /2/file_requests/update endpoint is for updating "&lt;A href="https://help.dropbox.com/files-folders/share/create-file-request" target="_self"&gt;file requests&lt;/A&gt;", not actual files/folders.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To rename a file or folder, you should use &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-move" target="_self"&gt;/2/files/move_v2&lt;/A&gt;. 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.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 21:52:30 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Attempt-to-rename-drive-file-folder-not-found-409/m-p/558330#M2248</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-11-17T21:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Attempt to rename drive file/folder “not found” (409)</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Attempt-to-rename-drive-file-folder-not-found-409/m-p/558341#M2249</link>
      <description>&lt;P&gt;Thank you! Confirmed this works.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Screenshot of response (200)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tragicdev_0-1637188849370.png" style="width: 400px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/26219i76AF025817859F0E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tragicdev_0-1637188849370.png" alt="tragicdev_0-1637188849370.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 22:41:29 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Attempt-to-rename-drive-file-folder-not-found-409/m-p/558341#M2249</guid>
      <dc:creator>tragicdev</dc:creator>
      <dc:date>2021-11-17T22:41:29Z</dc:date>
    </item>
  </channel>
</rss>

