<?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 update content properties through REST API in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/update-content-properties-through-rest-api/m-p/277791#M230921</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I try to update the properties (title, description, …) through the REST API but I do not succeed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;With a cmis client it works fine but I do not want to add the apache chemistry jar's to my project. I prefer doing all the manipulations (login, search, retrieve, update) through the rest api. I also prefer doing all the data exchange with json format and not with xml. (like the result of a search 'alfresco/service/api/search' )&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I managed to get quite a lot to do without adding cmis jar's to my project but updating the properties of a content requires according to the documentation an atomentry which is an xml content.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can generate this xml content by hand but it is quite noisy and when I have to do that I can alos include the jar's which generate it for me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way in alfresco (4.1 or 4.2) to do all the manipulations through the REST API with JSON ? If so how (mainly for updating the properties) ?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is what I managed to get to work&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;alfresco/service/api/login -&amp;gt; get Login token = JSON : perfect&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;alfresco/service/api/search/keyword.atom -&amp;gt; get search result : XML &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;alfresco/service/api/node/content/workspace/SpacesStore/538653c7…….. -&amp;gt; get content = DATA : perfect&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;alfresco/service/api/metadata -&amp;gt; get Properties = JSON : perfect&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;alfresco/service/api/node/workspace/SpacesStore/53865….. -&amp;gt; put of new properties : XML atomentry &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to update the metadata through the 'Node Metadata Storage Service' service (POST /alfresco/service/api/metadata/node/{store_type}/{store_id}/{id}) which sends me back a 'successfull' in JSON format, but the properties are not modified in alfresco. So what is this service good for ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help or suggestions are appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Georges Goebel&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Update Object (updateProperties)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PUT /alfresco/service/cmis/i/{id}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PUT /alfresco/service/cmis/s/{store}/i/{id}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PUT /alfresco/service/cmis/p{path}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PUT /alfresco/service/cmis/s/{store}/p{path}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PUT /alfresco/service/api/node/{store_type}/{store_id}/{id}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PUT /alfresco/service/api/path/{store_type}/{store_id}/{nodepath}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;—&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Update the properties of the specified Object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;—&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Authentication:&amp;nbsp;&amp;nbsp;&amp;nbsp;user&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Transaction:&amp;nbsp;&amp;nbsp;&amp;nbsp;required&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Format Style:&amp;nbsp;&amp;nbsp;&amp;nbsp;argument&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Default Format:&amp;nbsp;&amp;nbsp;&amp;nbsp;atomentry&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Lifecycle:&amp;nbsp;&amp;nbsp;&amp;nbsp;public_api&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Id:&amp;nbsp;&amp;nbsp;&amp;nbsp;org/alfresco/cmis/item.put&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Descriptor:&amp;nbsp;&amp;nbsp;&amp;nbsp;classpath:alfresco/templates/webscripts/org/alfresco/cmis/item.put.desc.xml&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Oct 2012 20:25:58 GMT</pubDate>
    <dc:creator>goebel</dc:creator>
    <dc:date>2012-10-31T20:25:58Z</dc:date>
    <item>
      <title>update content properties through REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/update-content-properties-through-rest-api/m-p/277791#M230921</link>
      <description>HiI try to update the properties (title, description, …) through the REST API but I do not succeed.With a cmis client it works fine but I do not want to add the apache chemistry jar's to my project. I prefer doing all the manipulations (login, search, retrieve, update) through the rest api. I also p</description>
      <pubDate>Wed, 31 Oct 2012 20:25:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/update-content-properties-through-rest-api/m-p/277791#M230921</guid>
      <dc:creator>goebel</dc:creator>
      <dc:date>2012-10-31T20:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: update content properties through REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/update-content-properties-through-rest-api/m-p/277792#M230922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Any comments on this from the experts? I'm looking for the same feature, i'd like to use the REST API to achieve this, but before I enter this large and confusing bucket of Alfresco's API's (&amp;lt;– yes, plural!) again, can i use this as i would expect it to behave??&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 07:44:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/update-content-properties-through-rest-api/m-p/277792#M230922</guid>
      <dc:creator>erik2</dc:creator>
      <dc:date>2015-04-29T07:44:20Z</dc:date>
    </item>
  </channel>
</rss>

