<?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 How to get document tags using REST API? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-get-document-tags-using-rest-api/m-p/327199#M14200</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'd like to get (or set!) a tag to a document using the REST API.&lt;/P&gt;
&lt;P&gt;How can this be done?&lt;/P&gt;
&lt;P&gt;Thanks for any advice&lt;/P&gt;
&lt;P&gt;Christian&lt;/P&gt;</description>
    <pubDate>Tue, 14 Oct 2014 21:31:36 GMT</pubDate>
    <dc:creator>Arnault_</dc:creator>
    <dc:date>2014-10-14T21:31:36Z</dc:date>
    <item>
      <title>How to get document tags using REST API?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-get-document-tags-using-rest-api/m-p/327199#M14200</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'd like to get (or set!) a tag to a document using the REST API.&lt;/P&gt;
&lt;P&gt;How can this be done?&lt;/P&gt;
&lt;P&gt;Thanks for any advice&lt;/P&gt;
&lt;P&gt;Christian&lt;/P&gt;</description>
      <pubDate>Tue, 14 Oct 2014 21:31:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-get-document-tags-using-rest-api/m-p/327199#M14200</guid>
      <dc:creator>Arnault_</dc:creator>
      <dc:date>2014-10-14T21:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to get document tags using REST API?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-get-document-tags-using-rest-api/m-p/327200#M14201</link>
      <description>&lt;P&gt;Is there a solution to setting and getting tags via the REST API&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2015 08:23:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-get-document-tags-using-rest-api/m-p/327200#M14201</guid>
      <dc:creator>ssze_</dc:creator>
      <dc:date>2015-08-06T08:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to get document tags using REST API?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-get-document-tags-using-rest-api/m-p/327201#M14202</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;After all, since no operation exists, I have developed a new operation SetDocumentTag callable from the APIREST:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;@Operation(id=SetDocumentTag.ID, category=Constants.CAT_DOCUMENT, label="SetDocumentTag", description="")
public class SetDocumentTag {

    public static final String ID = "SetDocumentTag";

    private static final Log log = LogFactory.getLog(SetDocumentTag.class);

    @Context
    protected CoreSession session;

    @Param(name = "label", required = true)
    protected String label;

    @Param(name = "username", required = true)
    protected String username;

    @OperationMethod
    public void run(DocumentModel input) throws Exception {
        TagService service = Framework.getLocalService(TagService.class);

        String docId = input.getId();

        log.error("SetDocumentTag&amp;gt; docId=" + docId + " tag=" + label + " username=" + username);

        service.tag(session, docId, label, username);

        session.save();
    }

}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Christian&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2015 08:51:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-get-document-tags-using-rest-api/m-p/327201#M14202</guid>
      <dc:creator>Arnault_</dc:creator>
      <dc:date>2015-08-06T08:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to get document tags using REST API?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-get-document-tags-using-rest-api/m-p/327202#M14203</link>
      <description>&lt;P&gt;Thanks for the operation for setting tags. My only problem is that I do not get the relations via API with the calls outlines above. Do I need a special API call to retrieve tags. Is there some special X-NXDocumentProperties set. If I use the asterisk tags are not included in the response.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2015 07:27:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-get-document-tags-using-rest-api/m-p/327202#M14203</guid>
      <dc:creator>ssze_</dc:creator>
      <dc:date>2015-08-13T07:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to get document tags using REST API?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-get-document-tags-using-rest-api/m-p/327203#M14204</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2015 07:59:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-get-document-tags-using-rest-api/m-p/327203#M14204</guid>
      <dc:creator>Arnault_</dc:creator>
      <dc:date>2015-08-13T07:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to get document tags using REST API?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-get-document-tags-using-rest-api/m-p/327204#M14205</link>
      <description>&lt;P&gt;Hi Christian,&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2015 09:51:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-get-document-tags-using-rest-api/m-p/327204#M14205</guid>
      <dc:creator>ssze_</dc:creator>
      <dc:date>2015-08-13T09:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to get document tags using REST API?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-get-document-tags-using-rest-api/m-p/327205#M14206</link>
      <description>&lt;P&gt;...&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2015 10:05:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-get-document-tags-using-rest-api/m-p/327205#M14206</guid>
      <dc:creator>Arnault_</dc:creator>
      <dc:date>2015-08-13T10:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to get document tags using REST API?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-get-document-tags-using-rest-api/m-p/327206#M14207</link>
      <description>&lt;P&gt;The strange thing is that there are Operations for "Tag", "Untag" and "Remove all tags" from a document available but there seems to be no means for getting the tags set on a document via the API. I will have a look at the TagService now.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2015 12:34:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-get-document-tags-using-rest-api/m-p/327206#M14207</guid>
      <dc:creator>ssze_</dc:creator>
      <dc:date>2015-08-13T12:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to get document tags using REST API?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-get-document-tags-using-rest-api/m-p/327207#M14208</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2015 12:43:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-get-document-tags-using-rest-api/m-p/327207#M14208</guid>
      <dc:creator>Arnault_</dc:creator>
      <dc:date>2015-08-13T12:43:48Z</dc:date>
    </item>
  </channel>
</rss>

