<?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 Can't get path with `ns:` prefix to work in /2/files/list_folder in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-get-path-with-ns-prefix-to-work-in-2-files-list-folder/m-p/277821#M16638</link>
    <description>&lt;P&gt;I'm trying to get &lt;A href="https://rclone.org" target="_self"&gt;rclone&lt;/A&gt; to work with dropbox business accounts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I read &lt;A href="https://www.dropbox.com/developers/reference/namespace-guide#nspaths" target="_self"&gt;in the documentation&lt;/A&gt; that I should be able to use a `ns:1234` prefix on paths to view listings.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a curl example I constructed following the documentation which doesn't seem to work:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;$ curl -X POST -H 'Content-Type: application/json' \&lt;BR /&gt;    --header 'Authorization: Bearer XXXX' \&lt;BR /&gt;    --data '{"path":"ns:12345"}' \&lt;BR /&gt;    https://api.dropboxapi.com/2/files/list_folder&lt;BR /&gt;
{"error_summary": "path/not_found/...", "error": {".tag": "path", "path": {".tag": "not_found"}}}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However if I use the alternate form with the `&lt;SPAN&gt;Dropbox-API-Path-Root` header it seems to work.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;$ curl -X POST -H 'Content-Type: application/json' \&lt;BR /&gt;    --header 'Authorization: Bearer XXXX' \&lt;BR /&gt;    --header 'Dropbox-API-Path-Root: {".tag": "namespace_id", "namespace_id": "12345"}' \&lt;BR /&gt;    --data '{"path":""}' \&lt;BR /&gt;    https://api.dropboxapi.com/2/files/list_folder&lt;BR /&gt;
{"entries": [{".tag": "folder", "name": "test-folder", "path_lower": "/test-folder", "path_display": "/test-folder", "parent_shared_folder_id":....[snip successful listing]}
&lt;/PRE&gt;
&lt;P&gt;I'm trying to use putting the namespace in the path as the &lt;A href="https://godoc.org/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox" target="_self"&gt;go SDK&lt;/A&gt; doesn't seem to support the&amp;nbsp;&lt;SPAN&gt;Dropbox-API-Path-Root` header.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Any help much appreciated!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:13:03 GMT</pubDate>
    <dc:creator>ncw</dc:creator>
    <dc:date>2019-05-29T09:13:03Z</dc:date>
    <item>
      <title>Can't get path with `ns:` prefix to work in /2/files/list_folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-get-path-with-ns-prefix-to-work-in-2-files-list-folder/m-p/277821#M16638</link>
      <description>&lt;P&gt;I'm trying to get &lt;A href="https://rclone.org" target="_self"&gt;rclone&lt;/A&gt; to work with dropbox business accounts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I read &lt;A href="https://www.dropbox.com/developers/reference/namespace-guide#nspaths" target="_self"&gt;in the documentation&lt;/A&gt; that I should be able to use a `ns:1234` prefix on paths to view listings.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a curl example I constructed following the documentation which doesn't seem to work:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;$ curl -X POST -H 'Content-Type: application/json' \&lt;BR /&gt;    --header 'Authorization: Bearer XXXX' \&lt;BR /&gt;    --data '{"path":"ns:12345"}' \&lt;BR /&gt;    https://api.dropboxapi.com/2/files/list_folder&lt;BR /&gt;
{"error_summary": "path/not_found/...", "error": {".tag": "path", "path": {".tag": "not_found"}}}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However if I use the alternate form with the `&lt;SPAN&gt;Dropbox-API-Path-Root` header it seems to work.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;$ curl -X POST -H 'Content-Type: application/json' \&lt;BR /&gt;    --header 'Authorization: Bearer XXXX' \&lt;BR /&gt;    --header 'Dropbox-API-Path-Root: {".tag": "namespace_id", "namespace_id": "12345"}' \&lt;BR /&gt;    --data '{"path":""}' \&lt;BR /&gt;    https://api.dropboxapi.com/2/files/list_folder&lt;BR /&gt;
{"entries": [{".tag": "folder", "name": "test-folder", "path_lower": "/test-folder", "path_display": "/test-folder", "parent_shared_folder_id":....[snip successful listing]}
&lt;/PRE&gt;
&lt;P&gt;I'm trying to use putting the namespace in the path as the &lt;A href="https://godoc.org/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox" target="_self"&gt;go SDK&lt;/A&gt; doesn't seem to support the&amp;nbsp;&lt;SPAN&gt;Dropbox-API-Path-Root` header.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Any help much appreciated!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:13:03 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-get-path-with-ns-prefix-to-work-in-2-files-list-folder/m-p/277821#M16638</guid>
      <dc:creator>ncw</dc:creator>
      <dc:date>2019-05-29T09:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get path with `ns:` prefix to work in /2/files/list_folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-get-path-with-ns-prefix-to-work-in-2-files-list-folder/m-p/278101#M16649</link>
      <description>&lt;P&gt;Is the namespace ID for &lt;A href="https://www.dropbox.com/help/business/team-space-overview" target="_self"&gt;a "team space"&lt;/A&gt;? If so, you will need to use the the&amp;nbsp;Dropbox-API-Path-Root header to access it. (If not, please &lt;A href="https://www.dropbox.com/developers/contact" target="_blank"&gt;open an API ticket&lt;/A&gt; with details so we can check on this for you.)&lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2018 13:17:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-get-path-with-ns-prefix-to-work-in-2-files-list-folder/m-p/278101#M16649</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-05-29T13:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get path with `ns:` prefix to work in /2/files/list_folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-get-path-with-ns-prefix-to-work-in-2-files-list-folder/m-p/278106#M16653</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Is the namespace ID for &lt;A href="https://www.dropbox.com/help/business/team-space-overview" target="_self"&gt;a "team space"&lt;/A&gt;? If so, you will need to use the the&amp;nbsp;Dropbox-API-Path-Root header to access it.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes it is a team space.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In &lt;A href="https://www.dropbox.com/developers/reference/namespace-guide#nspaths" target="_self"&gt;the docs&lt;/A&gt;&amp;nbsp;I can't see an indication that the `ns:` prefix doesn't work with the team space root ID.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So is this a documentation bug?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your help&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nick&lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2018 13:33:10 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-get-path-with-ns-prefix-to-work-in-2-files-list-folder/m-p/278106#M16653</guid>
      <dc:creator>ncw</dc:creator>
      <dc:date>2018-05-29T13:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get path with `ns:` prefix to work in /2/files/list_folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-get-path-with-ns-prefix-to-work-in-2-files-list-folder/m-p/278123#M16655</link>
      <description>Thanks for pointing that out! I'll ask the team to update the documentation to clarify that.</description>
      <pubDate>Tue, 29 May 2018 14:50:04 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-get-path-with-ns-prefix-to-work-in-2-files-list-folder/m-p/278123#M16655</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-05-29T14:50:04Z</dc:date>
    </item>
  </channel>
</rss>

