<?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 Error 409 with download_zip on shared link subfolders in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-409-with-download-zip-on-shared-link-subfolders/m-p/397359#M21793</link>
    <description>&lt;P&gt;I am receiving HTTP error 409 when using&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://content.dropboxapi.com/2/files/download_zip" target="_blank" rel="noopener"&gt;https://content.dropboxapi.com/2/files/download_zip&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am using the folderIDs gathered from &lt;/SPAN&gt;&lt;SPAN&gt;files_list_folder, based on a shared link.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The below is how I am forming my POST (in Python):&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;def download_zip(folder_id):
    url     = 'https://content.dropboxapi.com/2/files/download_zip'
    
    headers = {
        'Authorization': 'Bearer ' + token,
        'Dropbox-API-Arg': "{" + '''"path"''' + ":"  + '''"''' + folder_id   + '''"''' + "}"
    }

    res = requests.post(url, headers=headers)
    print(res)&lt;/PRE&gt;
&lt;P&gt;A sample of a given header:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{'Authorization': 'Bearer &amp;lt;MyKey&amp;gt;', 'Dropbox-API-Arg': '{"path":"id:DH1fqZncI8AAAAAAAAPgQA"}'}&lt;/PRE&gt;
&lt;P&gt;Any help on how I can get the zip download to work on shared links would be appreciated. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Feb 2020 13:35:56 GMT</pubDate>
    <dc:creator>gcx</dc:creator>
    <dc:date>2020-02-17T13:35:56Z</dc:date>
    <item>
      <title>Error 409 with download_zip on shared link subfolders</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-409-with-download-zip-on-shared-link-subfolders/m-p/397359#M21793</link>
      <description>&lt;P&gt;I am receiving HTTP error 409 when using&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://content.dropboxapi.com/2/files/download_zip" target="_blank" rel="noopener"&gt;https://content.dropboxapi.com/2/files/download_zip&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am using the folderIDs gathered from &lt;/SPAN&gt;&lt;SPAN&gt;files_list_folder, based on a shared link.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The below is how I am forming my POST (in Python):&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;def download_zip(folder_id):
    url     = 'https://content.dropboxapi.com/2/files/download_zip'
    
    headers = {
        'Authorization': 'Bearer ' + token,
        'Dropbox-API-Arg': "{" + '''"path"''' + ":"  + '''"''' + folder_id   + '''"''' + "}"
    }

    res = requests.post(url, headers=headers)
    print(res)&lt;/PRE&gt;
&lt;P&gt;A sample of a given header:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{'Authorization': 'Bearer &amp;lt;MyKey&amp;gt;', 'Dropbox-API-Arg': '{"path":"id:DH1fqZncI8AAAAAAAAPgQA"}'}&lt;/PRE&gt;
&lt;P&gt;Any help on how I can get the zip download to work on shared links would be appreciated. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 13:35:56 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-409-with-download-zip-on-shared-link-subfolders/m-p/397359#M21793</guid>
      <dc:creator>gcx</dc:creator>
      <dc:date>2020-02-17T13:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error 409 with download_zip on shared link subfolders</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-409-with-download-zip-on-shared-link-subfolders/m-p/397553#M21796</link>
      <description>&lt;P&gt;First, for reference, whenever you get an error from the&amp;nbsp;Dropbox API, be sure to print out the response body as it may contain a more useful&amp;nbsp;error message.&lt;/P&gt;
&lt;P&gt;Anyway, unfortunately, the&amp;nbsp;Dropbox API does not currently support getting a zip download of a subfolder based on the id of the subfolder returned from listing the shared link like this (unless the connected account happens to contain the folder anyway).&amp;nbsp;I'll pass this along as a feature request, but I can't promise if or when that might be implemented.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that you can download the top-level folder as a zip from the shared link as &lt;A href="https://help.dropbox.com/files-folders/share/force-download" target="_self"&gt;documented here&lt;/A&gt;, but that doesn't provide a mechanism for downloading a specific subfolder.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 17:02:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-409-with-download-zip-on-shared-link-subfolders/m-p/397553#M21796</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-02-17T17:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error 409 with download_zip on shared link subfolders</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-409-with-download-zip-on-shared-link-subfolders/m-p/397561#M21798</link>
      <description>&lt;P&gt;Many thanks for your reply Greg.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had attempted to print the err message body but didn't find any content for this case.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm glad to know this is a feature limitation rather than a bug or user error. If you could indeed pass this along as a feature request I'd appreciate it.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 17:18:14 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-409-with-download-zip-on-shared-link-subfolders/m-p/397561#M21798</guid>
      <dc:creator>gcx</dc:creator>
      <dc:date>2020-02-17T17:18:14Z</dc:date>
    </item>
  </channel>
</rss>

