<?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: Create an App, get a Auth Token, try to use CURL to upload file, get a 400 in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Create-an-App-get-a-Auth-Token-try-to-use-CURL-to-upload-file/m-p/446563#M23280</link>
    <description>&lt;P&gt;User error - hadn't hit the SUBMIT button when I set the permissions. I just didn't see it buried at the bottom of the page, in a floating panel.&lt;/P&gt;</description>
    <pubDate>Wed, 19 Aug 2020 14:43:17 GMT</pubDate>
    <dc:creator>dhoerl1</dc:creator>
    <dc:date>2020-08-19T14:43:17Z</dc:date>
    <item>
      <title>Create an App, get a Auth Token, try to use CURL to upload file, get a 400</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Create-an-App-get-a-Auth-Token-try-to-use-CURL-to-upload-file/m-p/446371#M23275</link>
      <description>&lt;P&gt;Obviously I'm missing something.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an account, and created an App. I also created an OAUTH Token. I then found this curl script, and want to uplaod a file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl -X POST &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; \&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;--header "Authorization: Bearer &amp;lt;token&amp;gt;" \&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;--header "Dropbox-API-Arg: {\"path\": \"/1.jpg\"}" \&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;--header "Content-Type: application/octet-stream" \&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;--data-binary @./Cushion.jpg&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get this return:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Error in call to API function "files/upload": Your app is not authorized to use this endpoint.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So how to I get it authorized?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 21:45:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Create-an-App-get-a-Auth-Token-try-to-use-CURL-to-upload-file/m-p/446371#M23275</guid>
      <dc:creator>dhoerl1</dc:creator>
      <dc:date>2020-08-18T21:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Create an App, get a Auth Token, try to use CURL to upload file, get a 400</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Create-an-App-get-a-Auth-Token-try-to-use-CURL-to-upload-file/m-p/446563#M23280</link>
      <description>&lt;P&gt;User error - hadn't hit the SUBMIT button when I set the permissions. I just didn't see it buried at the bottom of the page, in a floating panel.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 14:43:17 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Create-an-App-get-a-Auth-Token-try-to-use-CURL-to-upload-file/m-p/446563#M23280</guid>
      <dc:creator>dhoerl1</dc:creator>
      <dc:date>2020-08-19T14:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Create an App, get a Auth Token, try to use CURL to upload file, get a 400</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Create-an-App-get-a-Auth-Token-try-to-use-CURL-to-upload-file/m-p/446569#M23281</link>
      <description>&lt;P&gt;Thanks for following up. I'm glad to hear you already sorted this out.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For reference&amp;nbsp;for anyone else who comes across&amp;nbsp;this, the "Your app is not authorized to use this endpoint" error indicates that the app for the access token you're using to make the call does not have the necessary scope needed for calling that particular endpoint.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can find information about what scope is needed for each endpoint in &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation" target="_self"&gt;the documentation&lt;/A&gt;. For example, for&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload" target="_self"&gt;/2/files/upload&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;, you need the 'files.content.write' scope.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If your app doesn't already have the scope enabled, you can add it via the "Permissions" tab on the app's info page on&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.dropbox.com/developers/apps" rel="noreferrer" target="_blank"&gt;the App Console&lt;/A&gt;&lt;SPAN&gt;. Then you can get a new access token with that scope added and use that new access token to make the API call.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 15:03:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Create-an-App-get-a-Auth-Token-try-to-use-CURL-to-upload-file/m-p/446569#M23281</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-08-19T15:03:12Z</dc:date>
    </item>
  </channel>
</rss>

