<?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: Adding tags to team files in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Adding-tags-to-team-files/m-p/258803#M15017</link>
    <description>&lt;P&gt;Okay, thanks for the link. I'll check it out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To clarify:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- to add tags to files shared by a team, there must be a template created with a team-owned token.&lt;/P&gt;&lt;P&gt;- to add tags, the request must be made with a team-owned token on behalf of an existing user&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is that correct? Is this the best way to accomplish what I'm doing. The goal is create a UI for&amp;nbsp;searching shared documents by tags.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jan 2018 20:08:49 GMT</pubDate>
    <dc:creator>matthewepler</dc:creator>
    <dc:date>2018-01-03T20:08:49Z</dc:date>
    <item>
      <title>Adding tags to team files</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Adding-tags-to-team-files/m-p/258794#M15012</link>
      <description>&lt;P&gt;Hi there. I'm trying to add custom tags to files shared by a team. I'm unable to add properties and get a returned reponse&amp;nbsp;"Restricted content." Searched for answers, didn't find any that helped.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps I'm not using the API as designed? These are the steps I've taken:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Create a template (with an admin-level token) using "/2/file_properties/templates/add_for_team"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Add properties (with a non-admin-level token) using "/2/file_properties/properties/add"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In step #1, I get a response with a template id,&amp;nbsp;that's good.&lt;/P&gt;&lt;P&gt;In step #2, I specify fields with the same name as I set in the template so that they match. I use a token that is issued at a User level (not Business).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But no dice. What am I doing wrong? Here are the requests:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1:&lt;/P&gt;&lt;P&gt;curl -X POST &lt;A href="https://api.dropboxapi.com/2/file_properties/templates/add_for_team" target="_blank"&gt;https://api.dropboxapi.com/2/file_properties/templates/add_for_team&lt;/A&gt; \&lt;BR /&gt;--header 'Authorization: Bearer &amp;lt;token&amp;gt;' \&lt;BR /&gt;--header 'Content-Type: application/json' \&lt;BR /&gt;--data '{"name":"Tags","description":"tags template","fields":[{"name":"practice","description":"equity, transformation, etc.","type":{".tag":"string"}},{"name":"project","description":"Kuja Kuja, Steps, etc.","type":{".tag":"string"}},{"name":"partner","description":"Chase, ARC, etc.","type":{".tag":"string"}},{"name":"filetype","description":"png, ai, pdf, etc.","type":{".tag":"string"}},{"name":"medium","description":"web, mobile, print, etc.","type":{".tag":"string"}},{"name":"category","description":"report, wireframes, template, capture, etc.","type":{".tag":"string"}}]}'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2:&lt;/P&gt;&lt;P&gt;curl -X POST &lt;A href="https://api.dropboxapi.com/2/file_properties/properties/add" target="_blank"&gt;https://api.dropboxapi.com/2/file_properties/properties/add&lt;/A&gt; \&lt;BR /&gt;--header 'Authorization: Bearer &amp;lt;token&amp;gt;' \&lt;BR /&gt;--header 'Content-Type: application/json' \&lt;BR /&gt;--data '{"path":"/Dev Assets/design_library/design_library_mockup.png","property_groups":[{"template_id":"ptid:g1CLXU7Z6l8AAAAAAEJ1KA","fields":[{"name":"practice","value":".org"},{"name":"project","value":"design library"},{"name":"partner","value":"daniel feldman, michael zhong"},{"name":"filetype","value":"png"},{"name":"medium","value":"web"},{"name":"category","value":"mockup"},{"name":"contributors","value":"daniel fledman, michael zhong"}]}]}'&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:16:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Adding-tags-to-team-files/m-p/258794#M15012</guid>
      <dc:creator>matthewepler</dc:creator>
      <dc:date>2019-05-29T09:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: Adding tags to team files</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Adding-tags-to-team-files/m-p/258796#M15013</link>
      <description>&lt;P&gt;The &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#file_properties-properties-add" target="_self"&gt;/2/file_properties/properties/add&lt;/A&gt;&amp;nbsp;endpoint documents 'restricted_content' as "You do not have permission to modify this template." That can happen for a few reasons, but it sounds like in your case you're using a user access token (e.g., for a "Full Dropbox" app) to try to add file properties for a team-owned template, created via a team access token (for a "team member file access" app).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you used &lt;A href="https://www.dropbox.com/developers/documentation/http/teams#file_properties-templates-add_for_team" target="_self"&gt;/2/file_properties/templates/add_for_team&lt;/A&gt;&amp;nbsp;to create the template, the resulting template is owned by the team and you'll need to use a team access token for that team to use that template.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To call a user endpoint, such as&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#file_properties-properties-add" target="_self"&gt;/2/file_properties/properties/add&lt;/A&gt;, with a team access token, you should use &lt;A href="https://www.dropbox.com/developers/documentation/http/teams#teams-member-file-access" target="_self"&gt;the "member file access" feature&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 19:49:09 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Adding-tags-to-team-files/m-p/258796#M15013</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-01-03T19:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: Adding tags to team files</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Adding-tags-to-team-files/m-p/258803#M15017</link>
      <description>&lt;P&gt;Okay, thanks for the link. I'll check it out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To clarify:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- to add tags to files shared by a team, there must be a template created with a team-owned token.&lt;/P&gt;&lt;P&gt;- to add tags, the request must be made with a team-owned token on behalf of an existing user&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is that correct? Is this the best way to accomplish what I'm doing. The goal is create a UI for&amp;nbsp;searching shared documents by tags.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 20:08:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Adding-tags-to-team-files/m-p/258803#M15017</guid>
      <dc:creator>matthewepler</dc:creator>
      <dc:date>2018-01-03T20:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: Adding tags to team files</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Adding-tags-to-team-files/m-p/258817#M15020</link>
      <description>&lt;P&gt;That's almost correct, but to clarify, there are two different kinds of property templates: user-owned (created by &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#file_properties-templates-add_for_user" target="_self"&gt;/2/file_properties/templates/add_for_user&lt;/A&gt;) and team-owned (created by &lt;A href="https://www.dropbox.com/developers/documentation/http/teams#file_properties-templates-add_for_team" target="_self"&gt;/2/file_properties/templates/add_for_team&lt;/A&gt;).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To add file properties to a file for a team-owned property template, you need to use&amp;nbsp;a team token.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You don't technically need to use a team-owned template to add file properties to a file that happens to be shared with the team. (Sharing and file properties aren't connected.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want the file properties to be accessible to any user on the team though, your configuration&amp;nbsp;of using a team-owned template sounds like the best setup.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 21:13:43 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Adding-tags-to-team-files/m-p/258817#M15020</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-01-03T21:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Adding tags to team files</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Adding-tags-to-team-files/m-p/259087#M15048</link>
      <description>Thanks for clarifying, Greg. So if a user uses a user template to create tags on a document, those are not visible to other users. Is that right? Only if I use a team template?</description>
      <pubDate>Fri, 05 Jan 2018 13:11:17 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Adding-tags-to-team-files/m-p/259087#M15048</guid>
      <dc:creator>matthewepler</dc:creator>
      <dc:date>2018-01-05T13:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: Adding tags to team files</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Adding-tags-to-team-files/m-p/259118#M15049</link>
      <description>That's correct.</description>
      <pubDate>Fri, 05 Jan 2018 15:52:44 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Adding-tags-to-team-files/m-p/259118#M15049</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-01-05T15:52:44Z</dc:date>
    </item>
  </channel>
</rss>

