<?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: set sharing policy as disabled in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/set-sharing-policy-as-disabled/m-p/284054#M17395</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/729429"&gt;@test0071&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may try the following.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;curl -X POST https://api.dropboxapi.com/2/paper/docs/sharing_policy/set \
  --header 'Authorization: Bearer &amp;lt;token&amp;gt;' \
  --header 'Content-Type: application/json' \
  --data '{"doc_id":"WqfDh6TLUqMMbzCYDVLJe","sharing_policy":{"public_sharing_policy":"disabled"}}'&lt;/PRE&gt;
&lt;P&gt;Cheers&lt;/P&gt;
&lt;P&gt;Vicker&lt;/P&gt;</description>
    <pubDate>Wed, 11 Jul 2018 06:56:07 GMT</pubDate>
    <dc:creator>Vicker</dc:creator>
    <dc:date>2018-07-11T06:56:07Z</dc:date>
    <item>
      <title>set sharing policy as disabled</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/set-sharing-policy-as-disabled/m-p/284050#M17394</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using following API&amp;nbsp; &lt;FONT size="3"&gt;&lt;SPAN data-reactid=".0.1.0"&gt;docs/sharing_policy/set to set public sharing policy via api explorer all of the public shairn policies work fine except&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;PRE class="bash" data-reactid=".0.2.0.0.0.4.1.0.0.1.0"&gt;&lt;CODE class="bash hljs" data-reactid=".0.2.0.0.0.4.1.0.0.1.0.0"&gt;&lt;SPAN data-reactid=".0.2.0.0.0.4.1.0.0.1.0.0.0"&gt;&lt;SPAN class="hljs-string"&gt;disabled&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;PRE class="bash" data-reactid=".0.2.0.0.0.4.1.0.0.1.0"&gt;&lt;CODE class="bash hljs" data-reactid=".0.2.0.0.0.4.1.0.0.1.0.0"&gt;&lt;SPAN data-reactid=".0.2.0.0.0.4.1.0.0.1.0.0.0"&gt;curl -X POST https://api.dropboxapi.com/&lt;SPAN class="hljs-number"&gt;2&lt;/SPAN&gt;/paper/docs/sharing_policy/&lt;SPAN class="hljs-built_in"&gt;set&lt;/SPAN&gt; \
  --header &lt;SPAN class="hljs-string"&gt;'Authorization: Bearer &amp;lt;token&amp;gt;'&lt;/SPAN&gt; \
  --header &lt;SPAN class="hljs-string"&gt;'Content-Type: application/json'&lt;/SPAN&gt; \
  --data &lt;SPAN class="hljs-string"&gt;'{"doc_id":"WqfDh6TLUqMMbzCYDVLJe","sharing_policy":{"public_sharing_policy":{".tag":"disabled"}}}'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;&lt;SPAN data-reactid=".0.1.0"&gt;for which i get follwoing response &lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;DIV id="response-container" data-reactid=".0.2.1.0.0.0.1.0"&gt;
&lt;H4 data-reactid=".0.2.1.0.0.0.1.0.0.0.0.0"&gt;Error: &lt;SPAN class="hljs-number"&gt;400&lt;/SPAN&gt;&lt;/H4&gt;
&lt;PRE class="json" data-reactid=".0.2.1.0.0.0.1.0.0"&gt;&lt;CODE class="json hljs" data-reactid=".0.2.1.0.0.0.1.0.0.0"&gt;&lt;SPAN data-reactid=".0.2.1.0.0.0.1.0.0.0.0"&gt;&lt;CODE data-reactid=".0.2.1.0.0.0.1.0.0.0.0.1"&gt;Error in call to API function &lt;SPAN class="hljs-string"&gt;"paper/docs/sharing_policy/set"&lt;/SPAN&gt;: Invalid arguments supplied.&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;Can you pelase check this and let me know why it doesnot work&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:12:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/set-sharing-policy-as-disabled/m-p/284050#M17394</guid>
      <dc:creator>test0071</dc:creator>
      <dc:date>2019-05-29T09:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: set sharing policy as disabled</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/set-sharing-policy-as-disabled/m-p/284054#M17395</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/729429"&gt;@test0071&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may try the following.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;curl -X POST https://api.dropboxapi.com/2/paper/docs/sharing_policy/set \
  --header 'Authorization: Bearer &amp;lt;token&amp;gt;' \
  --header 'Content-Type: application/json' \
  --data '{"doc_id":"WqfDh6TLUqMMbzCYDVLJe","sharing_policy":{"public_sharing_policy":"disabled"}}'&lt;/PRE&gt;
&lt;P&gt;Cheers&lt;/P&gt;
&lt;P&gt;Vicker&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2018 06:56:07 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/set-sharing-policy-as-disabled/m-p/284054#M17395</guid>
      <dc:creator>Vicker</dc:creator>
      <dc:date>2018-07-11T06:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: set sharing policy as disabled</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/set-sharing-policy-as-disabled/m-p/284117#M17397</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/729429"&gt;@test0071&lt;/a&gt;&amp;nbsp;Note that, from &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#paper-docs-sharing_policy-set" target="_blank"&gt;the documentation&lt;/A&gt;:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"'public_sharing_policy' cannot be set to the value 'disabled' because this setting can be changed only via the team admin console."&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2018 15:49:19 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/set-sharing-policy-as-disabled/m-p/284117#M17397</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-07-11T15:49:19Z</dc:date>
    </item>
  </channel>
</rss>

