<?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: I would like to know whether the folder is under a team folder or a user folder in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-would-like-to-know-whether-the-folder-is-under-a-team-folder/m-p/725341#M32040</link>
    <description>&lt;P&gt;I'll make 2 API requests.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;call to&amp;nbsp;/2/files/get_metadata API with folder ID without&amp;nbsp;&lt;SPAN&gt;Dropbox-API-Path-Root header&lt;/SPAN&gt;&lt;OL&gt;&lt;LI&gt;i&lt;SPAN&gt;f receive code 200 response, it means user folder.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;if receive code 409 response, then continue to next.&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;call to&amp;nbsp;/2/files/get_metadata API with same folder ID and&amp;nbsp;&lt;SPAN&gt;Dropbox-API-Path-Root header&lt;/SPAN&gt;&lt;OL&gt;&lt;LI&gt;if receive code 200 response, it means team folder.&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Do you think this is appropriate workflow?&lt;/P&gt;</description>
    <pubDate>Mon, 30 Oct 2023 04:35:23 GMT</pubDate>
    <dc:creator>Takashi Homma</dc:creator>
    <dc:date>2023-10-30T04:35:23Z</dc:date>
    <item>
      <title>I would like to know whether the folder is under a team folder or a user folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-would-like-to-know-whether-the-folder-is-under-a-team-folder/m-p/724866#M32025</link>
      <description>&lt;P&gt;I would like to know whether the folder that specified in the Chooser widget is under a team folder or a user folder. Is there an appropriate API for this?&lt;/P&gt;&lt;P&gt;I guess it is available by folder id and get_metadata API.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2023 07:26:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-would-like-to-know-whether-the-folder-is-under-a-team-folder/m-p/724866#M32025</guid>
      <dc:creator>Takashi Homma</dc:creator>
      <dc:date>2023-10-27T07:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: I would like to know whether the folder is under a team folder or a user folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-would-like-to-know-whether-the-folder-is-under-a-team-folder/m-p/724944#M32028</link>
      <description>&lt;P&gt;Yes, to get information about a specific item, you would use &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-get_metadata" target="_blank"&gt;/2/files/get_metadata&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2023 13:44:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-would-like-to-know-whether-the-folder-is-under-a-team-folder/m-p/724944#M32028</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-10-27T13:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: I would like to know whether the folder is under a team folder or a user folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-would-like-to-know-whether-the-folder-is-under-a-team-folder/m-p/725341#M32040</link>
      <description>&lt;P&gt;I'll make 2 API requests.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;call to&amp;nbsp;/2/files/get_metadata API with folder ID without&amp;nbsp;&lt;SPAN&gt;Dropbox-API-Path-Root header&lt;/SPAN&gt;&lt;OL&gt;&lt;LI&gt;i&lt;SPAN&gt;f receive code 200 response, it means user folder.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;if receive code 409 response, then continue to next.&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;call to&amp;nbsp;/2/files/get_metadata API with same folder ID and&amp;nbsp;&lt;SPAN&gt;Dropbox-API-Path-Root header&lt;/SPAN&gt;&lt;OL&gt;&lt;LI&gt;if receive code 200 response, it means team folder.&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Do you think this is appropriate workflow?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 04:35:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-would-like-to-know-whether-the-folder-is-under-a-team-folder/m-p/725341#M32040</guid>
      <dc:creator>Takashi Homma</dc:creator>
      <dc:date>2023-10-30T04:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: I would like to know whether the folder is under a team folder or a user folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-would-like-to-know-whether-the-folder-is-under-a-team-folder/m-p/725444#M32045</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1758283"&gt;@Takashi Homma&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I would like to know whether the folder that specified in the Chooser widget is under a team folder or a user folder. Is there an appropriate API for this?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1758283"&gt;@Takashi Homma&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;There is no direct API call that gives you that information. Once you get the file path (in the metadata) you can compare and see if is the residing place of the file in your (or your app' users) personal folder or no. You don't need other API calls - just literal comparison. If you don't have the home folder path yet, only getting metadata for the home folder itself may be needed (in such case you have to use Dropbox-API-Path-Root header) - executed single time.&lt;/P&gt;&lt;P&gt;A good way would be to review your application algorithm, so that can work without such information. Focus on data processing, not where the file(s) comes from - let the user controls this. &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;&lt;P&gt;Hope this gives direction.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 13:30:31 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-would-like-to-know-whether-the-folder-is-under-a-team-folder/m-p/725444#M32045</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-10-30T13:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: I would like to know whether the folder is under a team folder or a user folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-would-like-to-know-whether-the-folder-is-under-a-team-folder/m-p/725512#M32051</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1758283"&gt;@Takashi Homma&lt;/a&gt; Yes, additionally note that some teams currently have a team space, and some don't. Make sure to read through &lt;A href="https://developers.dropbox.com/dbx-team-files-guide" target="_blank"&gt;the Team Files Guide&lt;/A&gt; to understand how the different configurations work. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, note that there may be multiple reasons an endpoint would return a 409, so always check the error in the response body for the specific error case. You can find the errors for each endpoint in the endpoint documentation, such as &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-get_metadata" target="_blank"&gt;for /2/files/get_metadata&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 18:12:35 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-would-like-to-know-whether-the-folder-is-under-a-team-folder/m-p/725512#M32051</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-10-30T18:12:35Z</dc:date>
    </item>
  </channel>
</rss>

