<?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 Adding customize metadata with rest api in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/adding-customize-metadata-with-rest-api/m-p/326028#M13029</link>
    <description>&lt;P&gt;I am new to nuxeo and I would like to add customize metadata to the document, in my case it's transaction ID. For example I have created document from the file with rest api:&lt;/P&gt;
&lt;P&gt;POST &lt;A href="http://nuxeo/nuxeo/api/v1/id/de72f8e6-348e-477b-8824-9b1c157b4f7d" target="test_blank"&gt;http://nuxeo/nuxeo/api/v1/id/de72f8e6-348e-477b-8824-9b1c157b4f7d&lt;/A&gt;
{
"entity-type": "document",
"name":"HelloWorld.doc",
"type": "File",
"properties": {
"dc:title": "HelloWorld.doc",
"dc:description": "Created via a so cool and simple REST API",
"transaction:ID": "8D9AC546-917B-4FC0-B378-000D4E968601",
"file:content": {
"upload-batch":"batchId-2c15a871-0f02-4889-b976-1531e52fcb0d",
"upload-fileId":"0"
}
}
}&lt;/P&gt;
&lt;P&gt;Than I run GET request and got the following response:
{
"entity-type": "document",
"repository": "default",
"uid": "3fb01c07-e0cf-4167-ad91-0fa7304a2442",
"path": "/default-domain/workspaces/Sample Content/PDF and Office Documents/HelloWorld.doc",
"type": "File",
"state": "project",
"parentRef": "de72f8e6-348e-477b-8824-9b1c157b4f7d",
"isCheckedOut": true,
"isVersion": false,
"isProxy": false,
"changeToken": "5-0",
"title": "HelloWorld.doc",
"lastModified": "2018-04-27T15:07:47.420Z",
"properties": {
"uid:uid": null,
"uid:major_version": 0,
"uid:minor_version": 0,
"thumb:thumbnail": {
"name": "HelloWorld.png",
"mime-type": "image/png",
"encoding": null,
"digestAlgorithm": "MD5",
"digest": "fc05bb5bc325e52720d11f084d2aa919",
"length": "756",
"data": "http://10.204.20.153/nuxeo/nxfile/default/3fb01c07-e0cf-4167-ad91-0fa7304a2442/thumb:thumbnail/HelloWorld.png"
},
"file:content": {
"name": "HelloWorld.doc",
"mime-type": "application/msword",
"encoding": null,
"digestAlgorithm": "MD5",
"digest": "b275cf878138a65f4aed3324c3f20b78",
"length": "23040",
"data": "http://10.204.20.153/nuxeo/nxfile/default/3fb01c07-e0cf-4167-ad91-0fa7304a2442/file:content/HelloWorld.doc"
},
"common:icon-expanded": null,
"common:icon": "/icons/word.png",
"files:files": [],
"dc:description": "Created via a so cool and simple REST API",
"dc:language": null,
"dc:coverage": null,
"dc:valid": null,
"dc:creator": "Administrator",
"dc:modified": "2018-04-27T15:07:47.420Z",
"dc:lastContributor": "Administrator",
"dc:rights": null,
"dc:expired": null,
"dc:format": null,
"dc:created": "2018-04-27T15:07:47.420Z",
"dc:title": "HelloWorld.doc",
"dc:issued": null,
"dc:nature": null,
"dc:subjects": [],
"dc:contributors": [
"Administrator"
],
"dc:source": null,
"dc:publisher": null,
"relatedtext:relatedtextresources": [],
"nxtag:tags": []
},
"facets": [
"Versionable",
"NXTag",
"Publishable",
"Commentable",
"HasRelatedText",
"Thumbnail",
"Downloadable"
]
}&lt;/P&gt;
&lt;P&gt;But I don't see transaction metadata, for example transaction:ID. that I added . Could you please tell me what I am doing wrong.&lt;/P&gt;</description>
    <pubDate>Fri, 27 Apr 2018 16:29:50 GMT</pubDate>
    <dc:creator>Uril_Yak</dc:creator>
    <dc:date>2018-04-27T16:29:50Z</dc:date>
    <item>
      <title>Adding customize metadata with rest api</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/adding-customize-metadata-with-rest-api/m-p/326028#M13029</link>
      <description>&lt;P&gt;I am new to nuxeo and I would like to add customize metadata to the document, in my case it's transaction ID. For example I have created document from the file with rest api:&lt;/P&gt;
&lt;P&gt;POST &lt;A href="http://nuxeo/nuxeo/api/v1/id/de72f8e6-348e-477b-8824-9b1c157b4f7d" target="test_blank"&gt;http://nuxeo/nuxeo/api/v1/id/de72f8e6-348e-477b-8824-9b1c157b4f7d&lt;/A&gt;
{
"entity-type": "document",
"name":"HelloWorld.doc",
"type": "File",
"properties": {
"dc:title": "HelloWorld.doc",
"dc:description": "Created via a so cool and simple REST API",
"transaction:ID": "8D9AC546-917B-4FC0-B378-000D4E968601",
"file:content": {
"upload-batch":"batchId-2c15a871-0f02-4889-b976-1531e52fcb0d",
"upload-fileId":"0"
}
}
}&lt;/P&gt;
&lt;P&gt;Than I run GET request and got the following response:
{
"entity-type": "document",
"repository": "default",
"uid": "3fb01c07-e0cf-4167-ad91-0fa7304a2442",
"path": "/default-domain/workspaces/Sample Content/PDF and Office Documents/HelloWorld.doc",
"type": "File",
"state": "project",
"parentRef": "de72f8e6-348e-477b-8824-9b1c157b4f7d",
"isCheckedOut": true,
"isVersion": false,
"isProxy": false,
"changeToken": "5-0",
"title": "HelloWorld.doc",
"lastModified": "2018-04-27T15:07:47.420Z",
"properties": {
"uid:uid": null,
"uid:major_version": 0,
"uid:minor_version": 0,
"thumb:thumbnail": {
"name": "HelloWorld.png",
"mime-type": "image/png",
"encoding": null,
"digestAlgorithm": "MD5",
"digest": "fc05bb5bc325e52720d11f084d2aa919",
"length": "756",
"data": "http://10.204.20.153/nuxeo/nxfile/default/3fb01c07-e0cf-4167-ad91-0fa7304a2442/thumb:thumbnail/HelloWorld.png"
},
"file:content": {
"name": "HelloWorld.doc",
"mime-type": "application/msword",
"encoding": null,
"digestAlgorithm": "MD5",
"digest": "b275cf878138a65f4aed3324c3f20b78",
"length": "23040",
"data": "http://10.204.20.153/nuxeo/nxfile/default/3fb01c07-e0cf-4167-ad91-0fa7304a2442/file:content/HelloWorld.doc"
},
"common:icon-expanded": null,
"common:icon": "/icons/word.png",
"files:files": [],
"dc:description": "Created via a so cool and simple REST API",
"dc:language": null,
"dc:coverage": null,
"dc:valid": null,
"dc:creator": "Administrator",
"dc:modified": "2018-04-27T15:07:47.420Z",
"dc:lastContributor": "Administrator",
"dc:rights": null,
"dc:expired": null,
"dc:format": null,
"dc:created": "2018-04-27T15:07:47.420Z",
"dc:title": "HelloWorld.doc",
"dc:issued": null,
"dc:nature": null,
"dc:subjects": [],
"dc:contributors": [
"Administrator"
],
"dc:source": null,
"dc:publisher": null,
"relatedtext:relatedtextresources": [],
"nxtag:tags": []
},
"facets": [
"Versionable",
"NXTag",
"Publishable",
"Commentable",
"HasRelatedText",
"Thumbnail",
"Downloadable"
]
}&lt;/P&gt;
&lt;P&gt;But I don't see transaction metadata, for example transaction:ID. that I added . Could you please tell me what I am doing wrong.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2018 16:29:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/adding-customize-metadata-with-rest-api/m-p/326028#M13029</guid>
      <dc:creator>Uril_Yak</dc:creator>
      <dc:date>2018-04-27T16:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Adding customize metadata with rest api</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/adding-customize-metadata-with-rest-api/m-p/326029#M13030</link>
      <description>&lt;P&gt;Check out Special HTTP Headers:
header X-NXDocumentProperties=*
&lt;A href="https://doc.nuxeo.com/nxdoc/special-http-headers/" target="test_blank"&gt;https://doc.nuxeo.com/nxdoc/special-http-headers/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2018 19:28:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/adding-customize-metadata-with-rest-api/m-p/326029#M13030</guid>
      <dc:creator>Jackie_A</dc:creator>
      <dc:date>2018-04-27T19:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Adding customize metadata with rest api</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/adding-customize-metadata-with-rest-api/m-p/326030#M13031</link>
      <description>&lt;P&gt;I am using Postman for the client and in the Headers tab I put the following data&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2018 20:29:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/adding-customize-metadata-with-rest-api/m-p/326030#M13031</guid>
      <dc:creator>Uril_Yak</dc:creator>
      <dc:date>2018-04-27T20:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: Adding customize metadata with rest api</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/adding-customize-metadata-with-rest-api/m-p/326031#M13032</link>
      <description>&lt;P&gt;I created new POST request taking from the nuxeo documentation https&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2018 22:01:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/adding-customize-metadata-with-rest-api/m-p/326031#M13032</guid>
      <dc:creator>Uril_Yak</dc:creator>
      <dc:date>2018-04-27T22:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Adding customize metadata with rest api</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/adding-customize-metadata-with-rest-api/m-p/326032#M13033</link>
      <description>&lt;P&gt;I was also searching for the same, but didn't find any clue if we can add custom metadata dynamically in nuxeo. For adding metadata you have to add through nuxeo studio only.&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2018 05:21:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/adding-customize-metadata-with-rest-api/m-p/326032#M13033</guid>
      <dc:creator>Rahul_Chavan</dc:creator>
      <dc:date>2018-05-02T05:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: Adding customize metadata with rest api</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/adding-customize-metadata-with-rest-api/m-p/326033#M13034</link>
      <description>&lt;P&gt;In order to add dynamic custom metadata, you must define a facet that holds a schema defining your custom metadata.&lt;/P&gt;
&lt;P&gt;Before adding the metadata, you have to add the facet to the document (automation operation).&lt;/P&gt;
&lt;P&gt;Now, it might be easier to create a custom doctype (that inherits File for instance) associated with the same schema&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2018 09:13:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/adding-customize-metadata-with-rest-api/m-p/326033#M13034</guid>
      <dc:creator>pibou_Bouvret</dc:creator>
      <dc:date>2018-05-02T09:13:05Z</dc:date>
    </item>
  </channel>
</rss>

