<?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: Retrieve metadata for a document type in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/retrieve-metadata-for-a-document-type/m-p/285016#M238146</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm afraid there is not any webscript api that can be used directly to update properties definition with json format.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to use webscipt api to update content definition,you can:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Deploy your content model using dynamic approach – places the model files in the content repository under Company Home/Data Dictionary/Models.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Get node content(model definition) using webscript api with url &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;GET /api/path/{store_type}/{store_id}/{nodepath}/content&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3.Modify the xml content(since a content model is nothing but an XML document,you can modify the xml file directly),and then write your content back to repository using webscript api with url &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt; PUT api/path/{store_type}/{store_id}/{nodepath}/content{property}&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Jul 2014 15:40:44 GMT</pubDate>
    <dc:creator>kaynezhang</dc:creator>
    <dc:date>2014-07-11T15:40:44Z</dc:date>
    <item>
      <title>Retrieve metadata for a document type</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/retrieve-metadata-for-a-document-type/m-p/285012#M238142</link>
      <description>Hi,Given a document type, is there any REST API to return the metadata in JSON format? Please guide me to the appropriate documentation.ThanksDeepa</description>
      <pubDate>Thu, 10 Jul 2014 07:14:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/retrieve-metadata-for-a-document-type/m-p/285012#M238142</guid>
      <dc:creator>deepacp</dc:creator>
      <dc:date>2014-07-10T07:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve metadata for a document type</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/retrieve-metadata-for-a-document-type/m-p/285013#M238143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Hi, You can check this nodeRef cookbook to get content properties. Once you get required data then you can have your custom webscritp and its response in JSON format. Please check below link for webscript too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Noderef cookbook - &lt;/SPAN&gt;&lt;A href="https://wiki.alfresco.com/wiki/NodeRef_cookbook#Reading_a_property_of_a_node" rel="nofollow noopener noreferrer"&gt;https://wiki.alfresco.com/wiki/NodeRef_cookbook#Reading_a_property_of_a_node&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Webscript: &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://wiki.alfresco.com/wiki/Web_Scripts" rel="nofollow noopener noreferrer"&gt;https://wiki.alfresco.com/wiki/Web_Scripts&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;And there is also OOB webscript to get metadata of given noderef, if it fits in your requirement - &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow noopener noreferrer"&gt;http://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;host&amp;gt;:&amp;lt;port&amp;gt;/alfresco/service/api/metadata?nodeRef=workspace://SpacesStore/6c9cee9a-4253-4dc5-82da-0fab14b16480&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2014 07:54:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/retrieve-metadata-for-a-document-type/m-p/285013#M238143</guid>
      <dc:creator>niketapatel</dc:creator>
      <dc:date>2014-07-10T07:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve metadata for a document type</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/retrieve-metadata-for-a-document-type/m-p/285014#M238144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;All dictionary related Web Scripts are all in package&amp;nbsp; "/org/alfresco/repository/dictionary",You can visit at this address &amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;A href="http://localhost:8080/alfresco/service/index/package/org/alfresco/repository/dictionary" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/service/index/package/org/alfresco/repository/dictionary&lt;/A&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To get the class definition for a given classname , you can use&amp;nbsp; this webscript api &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;/alfresco/service/api/classes/{className}&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; .&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2014 17:30:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/retrieve-metadata-for-a-document-type/m-p/285014#M238144</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-07-10T17:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve metadata for a document type</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/retrieve-metadata-for-a-document-type/m-p/285015#M238145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks kaynezhang!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am able to retrieve the properties but could not find any REST API with json format to update properties. I don't want to use CMIS, is there any alternative way to achieve this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2014 10:03:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/retrieve-metadata-for-a-document-type/m-p/285015#M238145</guid>
      <dc:creator>deepacp</dc:creator>
      <dc:date>2014-07-11T10:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve metadata for a document type</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/retrieve-metadata-for-a-document-type/m-p/285016#M238146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm afraid there is not any webscript api that can be used directly to update properties definition with json format.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to use webscipt api to update content definition,you can:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Deploy your content model using dynamic approach – places the model files in the content repository under Company Home/Data Dictionary/Models.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Get node content(model definition) using webscript api with url &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;GET /api/path/{store_type}/{store_id}/{nodepath}/content&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3.Modify the xml content(since a content model is nothing but an XML document,you can modify the xml file directly),and then write your content back to repository using webscript api with url &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt; PUT api/path/{store_type}/{store_id}/{nodepath}/content{property}&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2014 15:40:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/retrieve-metadata-for-a-document-type/m-p/285016#M238146</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-07-11T15:40:44Z</dc:date>
    </item>
  </channel>
</rss>

