<?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 /sharing/create_shared_link_with_settings unauthorized in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/sharing-create-shared-link-with-settings-unauthorized/m-p/616241#M28409</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;im trying to create a shared link with /sharing/create_shared_link_with_settings. Despite having the&amp;nbsp;&lt;SPAN&gt;sharing.write set to my App, i get unauthorized all the time.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;What am i missing here?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Aug 2022 09:43:24 GMT</pubDate>
    <dc:creator>vinke</dc:creator>
    <dc:date>2022-08-16T09:43:24Z</dc:date>
    <item>
      <title>/sharing/create_shared_link_with_settings unauthorized</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/sharing-create-shared-link-with-settings-unauthorized/m-p/616241#M28409</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;im trying to create a shared link with /sharing/create_shared_link_with_settings. Despite having the&amp;nbsp;&lt;SPAN&gt;sharing.write set to my App, i get unauthorized all the time.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;What am i missing here?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 09:43:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/sharing-create-shared-link-with-settings-unauthorized/m-p/616241#M28409</guid>
      <dc:creator>vinke</dc:creator>
      <dc:date>2022-08-16T09:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: /sharing/create_shared_link_with_settings unauthorized</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/sharing-create-shared-link-with-settings-unauthorized/m-p/616279#M28412</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1565807"&gt;@vinke&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Are you certain access token in use is up to date and not expired? Once generated, its validity (without refresh) prolong to 4 hours, at most!&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 13:39:35 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/sharing-create-shared-link-with-settings-unauthorized/m-p/616279#M28412</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-08-16T13:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: /sharing/create_shared_link_with_settings unauthorized</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/sharing-create-shared-link-with-settings-unauthorized/m-p/616280#M28413</link>
      <description>&lt;P&gt;&lt;SPAN class="mwjuzq-2 eecHOY"&gt;I'll be happy to help with any issues you're having with the Dropbox API, but I'll need some more information. Please reply with: &lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN class="mwjuzq-2 eecHOY"&gt;the name and version number of the platform and SDK/library you are using, if any&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN class="mwjuzq-2 eecHOY"&gt;the steps to reproduce the issue, including relevant code snippet(s), but don't include any access or refresh token(s)&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN class="mwjuzq-2 eecHOY"&gt;the full text of any error or unexpected output from the API (be sure to print out the response body)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 16 Aug 2022 13:40:07 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/sharing-create-shared-link-with-settings-unauthorized/m-p/616280#M28413</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-08-16T13:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: /sharing/create_shared_link_with_settings unauthorized</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/sharing-create-shared-link-with-settings-unauthorized/m-p/616281#M28414</link>
      <description>&lt;P&gt;does the access token for this endpoint differ?&lt;/P&gt;&lt;P&gt;I am using the generated one from the App which is working fine for the endpoint /files/search_v2 for example.&lt;BR /&gt;I am not using an SDK, i am using symfony (PHP) and im using the HttpClientInterface to send the request.&lt;BR /&gt;&lt;BR /&gt;As said, its working for the endpoint&amp;nbsp;/files/search_v2 without any problems.&lt;BR /&gt;&lt;BR /&gt;Response:&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTTP/1.1 401 Unauthorized returned for "&lt;A href="https://api.dropboxapi.com/2/sharing/create_shared_link_with_settings" target="_blank"&gt;https://api.dropboxapi.com/2/sharing/create_shared_link_with_settings&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Same headers set as for&amp;nbsp;/files/search_v2 which is working fine&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 13:48:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/sharing-create-shared-link-with-settings-unauthorized/m-p/616281#M28414</guid>
      <dc:creator>vinke</dc:creator>
      <dc:date>2022-08-16T13:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: /sharing/create_shared_link_with_settings unauthorized</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/sharing-create-shared-link-with-settings-unauthorized/m-p/616284#M28415</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1565807"&gt;@vinke&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;does the access token for this endpoint differ?&lt;/P&gt;&lt;P&gt;I am using the generated one from the App which is working fine for the endpoint /files/search_v2 for example.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;No, the access token could be used for all regular API calls (wherever needed). Is you are using the same token? Only you know this!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1565807"&gt;@vinke&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;BR /&gt;Response:&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTTP/1.1 401 Unauthorized returned for "&lt;A href="https://api.dropboxapi.com/2/sharing/create_shared_link_with_settings" target="_blank" rel="noopener"&gt;https://api.dropboxapi.com/2/sharing/create_shared_link_with_settings&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The above is not a body!!! This is first line of the response, actually (far from the body).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ADD: Try the call &lt;A title="Dropbox API Explorer • create_shared_link_with_settings" href="https://dropbox.github.io/dropbox-api-v2-explorer/#sharing_create_shared_link_with_settings" target="_blank" rel="noopener"&gt;here&lt;/A&gt; with the same token. You can easy get the body out from response field. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 14:11:46 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/sharing-create-shared-link-with-settings-unauthorized/m-p/616284#M28415</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-08-16T14:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: /sharing/create_shared_link_with_settings unauthorized</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/sharing-create-shared-link-with-settings-unauthorized/m-p/616285#M28416</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1565807"&gt;@vinke&lt;/a&gt; Please print out the response body, as it should contain a more useful error message.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;While access tokens can be used to access multiple different endpoints, different endpoints do require different scopes, so it's possible that an access token can access one endpoint but not another.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, be aware that just adding a scope to your app via the App Console does not retroactively grant that scope to existing access tokens. That being the case, to make any API calls that require that scope, you'll need to get a new access token with that scope. For example, if the access token you're using was not originally created with the "sharing.write" scope, just enabling the "sharing.write" scope on the app itself will not automatically add "sharing.write" to that particular access token, so you'd need to get a new access token for that.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 14:04:51 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/sharing-create-shared-link-with-settings-unauthorized/m-p/616285#M28416</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-08-16T14:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: /sharing/create_shared_link_with_settings unauthorized</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/sharing-create-shared-link-with-settings-unauthorized/m-p/616457#M28423</link>
      <description>&lt;P&gt;thanks for the information!&lt;/P&gt;&lt;P&gt;I didnt know i have to refresh the token after changing/adding a scope &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 07:42:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/sharing-create-shared-link-with-settings-unauthorized/m-p/616457#M28423</guid>
      <dc:creator>vinke</dc:creator>
      <dc:date>2022-08-17T07:42:13Z</dc:date>
    </item>
  </channel>
</rss>

