<?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: get the uid of document from REST API instead of the hashed id in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/get-the-uid-of-document-from-rest-api-instead-of-the-hashed-id/m-p/328303#M15304</link>
    <description>&lt;P&gt;You can access it in the &lt;CODE&gt;properties&lt;/CODE&gt; object:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;propeties["uid:uid"]
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You probably need to ask for the &lt;CODE&gt;uid&lt;/CODE&gt; schema when doing your query to get back it in the JSON response:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&lt;A href="http://mynuxeo:8080/nuxeo/api/v1/query?query=XXXX&amp;amp;properties=uid" target="test_blank"&gt;http://mynuxeo:8080/nuxeo/api/v1/query?query=XXXX&amp;amp;properties=uid&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 12 Dec 2018 15:53:17 GMT</pubDate>
    <dc:creator>Thomas_Roger</dc:creator>
    <dc:date>2018-12-12T15:53:17Z</dc:date>
    <item>
      <title>get the uid of document from REST API instead of the hashed id</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/get-the-uid-of-document-from-rest-api-instead-of-the-hashed-id/m-p/328300#M15301</link>
      <description>&lt;P&gt;Hi
when i get a secific document using REST API , i'm getting the following informations in the json:
.
.
.
{"entity-type":"document",
"repository":"default",
"uid":"dde893c1-ed1d-493e-8c11-51fe4b3aaf13",
"path":"/default-domain/workspaces/XXX/YYY/ZZZZZZZZZZ"
.
.
.&lt;/P&gt;
&lt;P&gt;how can I get the right uid instead of the hashed one i'm getting&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;(im using &lt;A href="http://mynuxeo:8080/nuxeo/api/v1/query?query=" target="test_blank"&gt;http://mynuxeo:8080/nuxeo/api/v1/query?query=&lt;/A&gt; for my queries&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2018 14:38:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/get-the-uid-of-document-from-rest-api-instead-of-the-hashed-id/m-p/328300#M15301</guid>
      <dc:creator>YOUNES_Ouchtoub</dc:creator>
      <dc:date>2018-12-12T14:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: get the uid of document from REST API instead of the hashed id</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/get-the-uid-of-document-from-rest-api-instead-of-the-hashed-id/m-p/328301#M15302</link>
      <description>&lt;P&gt;You re getting the right uid, there is no hashed one&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2018 15:27:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/get-the-uid-of-document-from-rest-api-instead-of-the-hashed-id/m-p/328301#M15302</guid>
      <dc:creator>pibou_Bouvret</dc:creator>
      <dc:date>2018-12-12T15:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: get the uid of document from REST API instead of the hashed id</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/get-the-uid-of-document-from-rest-api-instead-of-the-hashed-id/m-p/328302#M15303</link>
      <description>&lt;P&gt;not really i want to get this one (uid&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2018 15:51:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/get-the-uid-of-document-from-rest-api-instead-of-the-hashed-id/m-p/328302#M15303</guid>
      <dc:creator>YOUNES_Ouchtoub</dc:creator>
      <dc:date>2018-12-12T15:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: get the uid of document from REST API instead of the hashed id</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/get-the-uid-of-document-from-rest-api-instead-of-the-hashed-id/m-p/328303#M15304</link>
      <description>&lt;P&gt;You can access it in the &lt;CODE&gt;properties&lt;/CODE&gt; object:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;propeties["uid:uid"]
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You probably need to ask for the &lt;CODE&gt;uid&lt;/CODE&gt; schema when doing your query to get back it in the JSON response:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&lt;A href="http://mynuxeo:8080/nuxeo/api/v1/query?query=XXXX&amp;amp;properties=uid" target="test_blank"&gt;http://mynuxeo:8080/nuxeo/api/v1/query?query=XXXX&amp;amp;properties=uid&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Dec 2018 15:53:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/get-the-uid-of-document-from-rest-api-instead-of-the-hashed-id/m-p/328303#M15304</guid>
      <dc:creator>Thomas_Roger</dc:creator>
      <dc:date>2018-12-12T15:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: get the uid of document from REST API instead of the hashed id</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/get-the-uid-of-document-from-rest-api-instead-of-the-hashed-id/m-p/328304#M15305</link>
      <description>&lt;P&gt;Thank you, so for everybody who faces the same problems with metadata, i added this header in my curl request (-H "X-NXDocumentProperties&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2018 17:08:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/get-the-uid-of-document-from-rest-api-instead-of-the-hashed-id/m-p/328304#M15305</guid>
      <dc:creator>YOUNES_Ouchtoub</dc:creator>
      <dc:date>2018-12-13T17:08:14Z</dc:date>
    </item>
  </channel>
</rss>

