<?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: Dropbox API: How to check if user can create shared link without calling create_shared_link_with in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-How-to-check-if-user-can-create-shared-link-without/m-p/587826#M27360</link>
    <description>&lt;P&gt;The errors returned by &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-create_shared_link_with_settings" target="_self"&gt;sharing/create_shared_link_with_settings&lt;/A&gt; give you a good sense of the primary cases to check for.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Users must have their email verified in order to share links - else they receive an&amp;nbsp;email_not_verified error. You can check for email verification in &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#users-get_current_account" target="_self"&gt;users/get_current_account&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;A link may already exist on the file for the user, in which case you may receive a&amp;nbsp;shared_link_already_exists error. You can call &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-list_shared_links" target="_self"&gt;sharing/list_shared_links&lt;/A&gt; on a path to determine if a link is already present.&lt;/LI&gt;
&lt;LI&gt;If content is within a shared folder, the folder owner may have enabled settings that prevent shared links on the content.&amp;nbsp; You may inspect the settings of a shared folder with &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-get_folder_metadata" target="_self"&gt;sharing/get_folder_metadata&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Some (non-default) link creation settings are not available to some account types (for example, basic accounts cannot set expiry times).&amp;nbsp; This is described in more detail in the create link method, and account type returned in get account&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;There are potentially rarer exceptions that may cause creating a link to fail that are less introspect-able; you will still want to error handle any 409's from the call.&lt;/P&gt;</description>
    <pubDate>Fri, 01 Apr 2022 23:44:15 GMT</pubDate>
    <dc:creator>kylea</dc:creator>
    <dc:date>2022-04-01T23:44:15Z</dc:date>
    <item>
      <title>Dropbox API: How to check if user can create shared link without calling create_shared_link_with_set</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-How-to-check-if-user-can-create-shared-link-without/m-p/587395#M27336</link>
      <description>&lt;P&gt;I build an app and I am would like to proactively inform the user they could not create shared link on a file/folder without them clicking the button and handling the error.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My question is, what API should I check to achieve that?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 06:49:56 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-How-to-check-if-user-can-create-shared-link-without/m-p/587395#M27336</guid>
      <dc:creator>sirhoe</dc:creator>
      <dc:date>2022-04-01T06:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox API: How to check if user can create shared link without calling create_shared_link_with</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-How-to-check-if-user-can-create-shared-link-without/m-p/587826#M27360</link>
      <description>&lt;P&gt;The errors returned by &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-create_shared_link_with_settings" target="_self"&gt;sharing/create_shared_link_with_settings&lt;/A&gt; give you a good sense of the primary cases to check for.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Users must have their email verified in order to share links - else they receive an&amp;nbsp;email_not_verified error. You can check for email verification in &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#users-get_current_account" target="_self"&gt;users/get_current_account&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;A link may already exist on the file for the user, in which case you may receive a&amp;nbsp;shared_link_already_exists error. You can call &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-list_shared_links" target="_self"&gt;sharing/list_shared_links&lt;/A&gt; on a path to determine if a link is already present.&lt;/LI&gt;
&lt;LI&gt;If content is within a shared folder, the folder owner may have enabled settings that prevent shared links on the content.&amp;nbsp; You may inspect the settings of a shared folder with &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-get_folder_metadata" target="_self"&gt;sharing/get_folder_metadata&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Some (non-default) link creation settings are not available to some account types (for example, basic accounts cannot set expiry times).&amp;nbsp; This is described in more detail in the create link method, and account type returned in get account&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;There are potentially rarer exceptions that may cause creating a link to fail that are less introspect-able; you will still want to error handle any 409's from the call.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 23:44:15 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-How-to-check-if-user-can-create-shared-link-without/m-p/587826#M27360</guid>
      <dc:creator>kylea</dc:creator>
      <dc:date>2022-04-01T23:44:15Z</dc:date>
    </item>
  </channel>
</rss>

