<?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 Create a Folder in a Team's Shared WorkSpace in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Create-a-Folder-in-a-Team-s-Shared-WorkSpace/m-p/466548#M23793</link>
    <description>&lt;P&gt;Hi,&amp;nbsp; please can you help.&lt;/P&gt;
&lt;P&gt;I am using the following post to try to create a folder inside the "Scanned Docs" Folder shown below&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="image.png" style="width: 986px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/18727i0A3C2274B10C93E3/image-dimensions/986x534?v=v2" width="986" height="534" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;URL =&amp;nbsp;&lt;A href="https://api.dropboxapi.com/2/files/create_folder_v2" target="_blank" rel="noopener"&gt;https://api.dropboxapi.com/2/files/create_folder_v2&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Contents of my Post =&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--header "Authorization: Bearer &amp;lt;&amp;lt;dropbox_token&amp;gt;&amp;gt;" \&lt;BR /&gt;--header "Dropbox-API-Select-Admin: &amp;lt;&amp;lt;TEAM_MEMBER_ID&amp;gt;&amp;gt;" \&lt;BR /&gt;--header 'Dropbox-API-Path-Root: {".tag": "root", "root": : "84********"} \&lt;BR /&gt;--header "Content-Type: application/json" \&lt;BR /&gt;--data "{\"path\": \"&amp;lt;&amp;lt;file_path&amp;gt;&amp;gt;\",\"autorename\": false}"&lt;/P&gt;
&lt;P&gt;I have tried every permutation I can think of in the&amp;nbsp;'Dropbox-API-Path-Root (including "Home" and "namespace_id" options and numbers 1-7 in the id. The number starting with 84 above is the namespace_id for the base directory called "Lodgical's Shared Workspace" as derived from a "&lt;A href="https://api.dropboxapi.com/2/team/team_folder/list" target="_blank" rel="noopener"&gt;https://api.dropboxapi.com/2/team/team_folder/list&lt;/A&gt;" post. The "&amp;lt;&amp;lt;TEAM_MEMBER&amp;gt;&amp;gt; was discovered by using a "&lt;A href="https://api.dropboxapi.com/2/team/members/list" target="_blank" rel="noopener"&gt;https://api.dropboxapi.com/2/team/members/list&lt;/A&gt;" and returned: a dbmid with a tag of "team_admin".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using a new API app with "scoped" permissions and have pretty much every setting ticked as active&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Pretty much everytime I think I have the syntax right etc I get the error: {"error_summary": "path/no_write_permission/..", "error": {".tag": "path", "path": {".tag": "no_write_permission"}}}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Everytime I switch to try the&amp;nbsp;Dropbox-API-Select-User header instead - it creates the folder I want but inside the "Paul Lodge" Home Space.&lt;/P&gt;
&lt;P&gt;I have read the namespace documentation etc from top to bottom, I can't quite work out what piece of the puzzle I am notting getting right. Can you please help?&lt;/P&gt;</description>
    <pubDate>Mon, 02 Nov 2020 15:36:33 GMT</pubDate>
    <dc:creator>Lodgical</dc:creator>
    <dc:date>2020-11-02T15:36:33Z</dc:date>
    <item>
      <title>Create a Folder in a Team's Shared WorkSpace</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Create-a-Folder-in-a-Team-s-Shared-WorkSpace/m-p/466548#M23793</link>
      <description>&lt;P&gt;Hi,&amp;nbsp; please can you help.&lt;/P&gt;
&lt;P&gt;I am using the following post to try to create a folder inside the "Scanned Docs" Folder shown below&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="image.png" style="width: 986px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/18727i0A3C2274B10C93E3/image-dimensions/986x534?v=v2" width="986" height="534" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;URL =&amp;nbsp;&lt;A href="https://api.dropboxapi.com/2/files/create_folder_v2" target="_blank" rel="noopener"&gt;https://api.dropboxapi.com/2/files/create_folder_v2&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Contents of my Post =&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--header "Authorization: Bearer &amp;lt;&amp;lt;dropbox_token&amp;gt;&amp;gt;" \&lt;BR /&gt;--header "Dropbox-API-Select-Admin: &amp;lt;&amp;lt;TEAM_MEMBER_ID&amp;gt;&amp;gt;" \&lt;BR /&gt;--header 'Dropbox-API-Path-Root: {".tag": "root", "root": : "84********"} \&lt;BR /&gt;--header "Content-Type: application/json" \&lt;BR /&gt;--data "{\"path\": \"&amp;lt;&amp;lt;file_path&amp;gt;&amp;gt;\",\"autorename\": false}"&lt;/P&gt;
&lt;P&gt;I have tried every permutation I can think of in the&amp;nbsp;'Dropbox-API-Path-Root (including "Home" and "namespace_id" options and numbers 1-7 in the id. The number starting with 84 above is the namespace_id for the base directory called "Lodgical's Shared Workspace" as derived from a "&lt;A href="https://api.dropboxapi.com/2/team/team_folder/list" target="_blank" rel="noopener"&gt;https://api.dropboxapi.com/2/team/team_folder/list&lt;/A&gt;" post. The "&amp;lt;&amp;lt;TEAM_MEMBER&amp;gt;&amp;gt; was discovered by using a "&lt;A href="https://api.dropboxapi.com/2/team/members/list" target="_blank" rel="noopener"&gt;https://api.dropboxapi.com/2/team/members/list&lt;/A&gt;" and returned: a dbmid with a tag of "team_admin".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using a new API app with "scoped" permissions and have pretty much every setting ticked as active&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Pretty much everytime I think I have the syntax right etc I get the error: {"error_summary": "path/no_write_permission/..", "error": {".tag": "path", "path": {".tag": "no_write_permission"}}}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Everytime I switch to try the&amp;nbsp;Dropbox-API-Select-User header instead - it creates the folder I want but inside the "Paul Lodge" Home Space.&lt;/P&gt;
&lt;P&gt;I have read the namespace documentation etc from top to bottom, I can't quite work out what piece of the puzzle I am notting getting right. Can you please help?&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 15:36:33 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Create-a-Folder-in-a-Team-s-Shared-WorkSpace/m-p/466548#M23793</guid>
      <dc:creator>Lodgical</dc:creator>
      <dc:date>2020-11-02T15:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Folder in a Team's Shared WorkSpace</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Create-a-Folder-in-a-Team-s-Shared-WorkSpace/m-p/466556#M23796</link>
      <description>&lt;P&gt;It sounds like you have the right idea here, but note that the 1-7 numbers in &lt;A href="https://www.dropbox.com/lp/developers/reference/dbx-team-files-guide" target="_self"&gt;the guide&lt;/A&gt; you're referring to are just examples; you shouldn't actually be using those real calls.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using the ID of the "Shared Workspace" as you mentioned (apparently starting with "84..." in your case) as the "root" in the "Dropbox-API-Path-Root" header is the right way to write in the team space though. And you would put the "Scanned Docs" path component in 'path' variable, along with the name of the new folder you want to create.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, to summarize, your call should look like this:&lt;/P&gt;
&lt;PRE&gt;curl -X "POST" https://api.dropboxapi.com/2/files/create_folder_v2 \
    --header "Authorization: Bearer &amp;lt;ACCESS_TOKEN&amp;gt;" \
    --header "Dropbox-API-Select-Admin: dbmid:..." \
    --header 'Dropbox-API-Path-Root: {".tag": "root", "root": "84..."}' \
    --header "Content-Type: application/json" \
    --data "{\"path\": \"/Scanned Docs/NEW_FOLDER_NAME\",\"autorename\": false}"&lt;/PRE&gt;
&lt;P&gt;It sounds like you've already tried that though, and still got an error, or created the folder in the team member folder instead. I recommend double checking that you've copied the right ID though, as the IDs for different areas&amp;nbsp;in the same account can look similar, e.g., may both start with "84..." in your case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this still isn't working for you, we'll be happy to take a closer like, but we'd need to see the actual values you're sending. In that case, please &lt;A href="https://www.dropbox.com/developers/contact" target="_self"&gt;open a ticket&lt;/A&gt; with the code you're using, including the actual values (but please redact your access token) so we can check on that for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 15:46:09 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Create-a-Folder-in-a-Team-s-Shared-WorkSpace/m-p/466556#M23796</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-11-02T15:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Folder in a Team's Shared WorkSpace</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Create-a-Folder-in-a-Team-s-Shared-WorkSpace/m-p/466645#M23801</link>
      <description>&lt;P&gt;Thank you Greg,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried again using the exact Post you suggested. I had already tried that Post but gave it another go.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I checked the "84" id and - assuming I am collecting it in the correct way - I had definately copied the number across correctly (i.e. no typo's). I double checked the dbmid too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have opened a ticket per your suggestion.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 21:46:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Create-a-Folder-in-a-Team-s-Shared-WorkSpace/m-p/466645#M23801</guid>
      <dc:creator>Lodgical</dc:creator>
      <dc:date>2020-11-02T21:46:23Z</dc:date>
    </item>
  </channel>
</rss>

