<?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: Geeting error 400 for URL request in Discuss Dropbox Developer &amp; API</title>
    <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Geeting-error-400-for-URL-request/m-p/528217#M1963</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ankitbhatii1108_0-1624291049099.png" style="width: 400px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/24062i04F34D36902834A5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ankitbhatii1108_0-1624291049099.png" alt="ankitbhatii1108_0-1624291049099.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Jun 2021 15:57:39 GMT</pubDate>
    <dc:creator>ankitbhatii1108</dc:creator>
    <dc:date>2021-06-21T15:57:39Z</dc:date>
    <item>
      <title>Geeting error 400 for URL request</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Geeting-error-400-for-URL-request/m-p/528164#M1959</link>
      <description>&lt;P&gt;when I try to hit&amp;nbsp;&lt;A href="https://content.dropboxapi.com/2/files/upload" target="_blank" rel="noopener"&gt;https://content.dropboxapi.com/2/files/upload&lt;/A&gt;&amp;nbsp;and get id from that for uploaded data I need URL so hit&amp;nbsp;&lt;A href="https://api.dropboxapi.com/2/sharing/get_file_metadata" target="_blank" rel="noopener"&gt;https://api.dropboxapi.com/2/sharing/get_file_metadata&lt;/A&gt;&amp;nbsp;but getting 400 erro please let me know what is issue.&lt;/P&gt;
&lt;P&gt;try{&lt;BR /&gt;&lt;BR /&gt;var setFilePublicBody = {&lt;BR /&gt;&amp;nbsp;"file": "id:5LsYZF1Brd8AAAAAAAAAQQ",&lt;BR /&gt;"actions": []&lt;BR /&gt;&amp;nbsp;};&lt;BR /&gt;&lt;BR /&gt;var xhr1 = new XMLHttpRequest();&lt;BR /&gt;xhr1.open("POST", "&lt;A href="https://api.dropboxapi.com/2/sharing/get_file_metadata" target="_blank" rel="noopener"&gt;https://api.dropboxapi.com/2/sharing/get_file_metadata&lt;/A&gt;", true);&lt;BR /&gt;xhr1.setRequestHeader("Authorization", "Bearer " + storageSettings.api_token);&lt;BR /&gt;xhr1.setRequestHeader("Content-type", "application/json");&lt;BR /&gt;xhr1.setRequestHeader("Dropbox-API-Arg", '{"path": "' + path + '" ,"mode":"add","autorename":true,"mute":false,"strict_conflict":false}');&lt;BR /&gt;xhr1.send(setFilePublicBody );&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;if (xhr1.readyState === 4) {&lt;BR /&gt;console.log('success');&lt;BR /&gt;}&lt;BR /&gt;}catch(err){&lt;BR /&gt;console.log('url request......eroor =&amp;gt;'+err);&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 11:50:33 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Geeting-error-400-for-URL-request/m-p/528164#M1959</guid>
      <dc:creator>ankitbhatii1108</dc:creator>
      <dc:date>2021-06-21T11:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Geeting error 400 for URL request</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Geeting-error-400-for-URL-request/m-p/528212#M1962</link>
      <description>&lt;P&gt;Can you print out the response body? It should contain a more specific error message.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 15:40:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Geeting-error-400-for-URL-request/m-p/528212#M1962</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-06-21T15:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Geeting error 400 for URL request</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Geeting-error-400-for-URL-request/m-p/528217#M1963</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ankitbhatii1108_0-1624291049099.png" style="width: 400px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/24062i04F34D36902834A5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ankitbhatii1108_0-1624291049099.png" alt="ankitbhatii1108_0-1624291049099.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 15:57:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Geeting-error-400-for-URL-request/m-p/528217#M1963</guid>
      <dc:creator>ankitbhatii1108</dc:creator>
      <dc:date>2021-06-21T15:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Geeting error 400 for URL request</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Geeting-error-400-for-URL-request/m-p/528218#M1964</link>
      <description>&lt;P&gt;here is error i have received&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 15:58:29 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Geeting-error-400-for-URL-request/m-p/528218#M1964</guid>
      <dc:creator>ankitbhatii1108</dc:creator>
      <dc:date>2021-06-21T15:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: Geeting error 400 for URL request</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Geeting-error-400-for-URL-request/m-p/528242#M1965</link>
      <description>&lt;P&gt;That error message indicates that the call failed because that /2/sharing/get_file_metadata endpoint doesn't support apps with the "app folder" access type, as noted in &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-get_file_metadata" target="_self"&gt;the documentation&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't have context on your use case, but for reference, if just you want to create a shared link for the uploaded file, you should use &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-create_shared_link_with_settings" target="_self"&gt;/2/sharing/create_shared_link_with_settings&lt;/A&gt; instead anyway. That is supported for apps with app folder access type.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 17:17:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Geeting-error-400-for-URL-request/m-p/528242#M1965</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-06-21T17:17:02Z</dc:date>
    </item>
  </channel>
</rss>

