<?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: Cannot update cm:title/description on a node with cm:versionable via REST API in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/cannot-update-cm-title-description-on-a-node-with-cm-versionable/m-p/88805#M26653</link>
    <description>&lt;P&gt;Alright, apparently we are still on Version 5.2.e/f. We'll try to update.&lt;BR /&gt;Thanks for your effort.&lt;/P&gt;</description>
    <pubDate>Thu, 23 Apr 2020 14:37:21 GMT</pubDate>
    <dc:creator>sboesch</dc:creator>
    <dc:date>2020-04-23T14:37:21Z</dc:date>
    <item>
      <title>Cannot update cm:title/description on a node with cm:versionable via REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/cannot-update-cm-title-description-on-a-node-with-cm-versionable/m-p/88799#M26647</link>
      <description>&lt;P&gt;I'm using the following endpoint to update a node:&lt;/P&gt;&lt;P&gt;&lt;A href="https://api-explorer.alfresco.com/api-explorer/#!/nodes/updateNode" target="_blank" rel="noopener nofollow noreferrer"&gt;https://api-explorer.alfresco.com/api-explorer/#!/nodes/updateNode&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;{
  "properties": [
    "cm:title": "New Title",
    "cm:description": "New Description",
    "cm:author": "New Author",
  ]
}&lt;/PRE&gt;&lt;P&gt;This works fine on nodes without versions. However, if a node has cm:versionable, it only updates cm:author but title and description remain the same. Tagging (which is done in a separate step) also works fine.&lt;/P&gt;&lt;P&gt;I also tried sending cm:versionLabel/versionType along but this also didn't help.&lt;BR /&gt;Neither by setting the same or higher version label.&lt;/P&gt;&lt;P&gt;Any help is highly appreciated!&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 10:48:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/cannot-update-cm-title-description-on-a-node-with-cm-versionable/m-p/88799#M26647</guid>
      <dc:creator>sboesch</dc:creator>
      <dc:date>2020-04-22T10:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot update cm:title/description on a node with cm:versionable via REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/cannot-update-cm-title-description-on-a-node-with-cm-versionable/m-p/88800#M26648</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Have you had a look at the Rest API series - part 5 discusses &lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-blog/v1-rest-api-part-5-versioning-locking/ba-p/288449" target="_self" rel="nofollow noopener noreferrer"&gt;locking &amp;amp; versioning&lt;/A&gt;? I believe the correct PUTT call is&amp;nbsp;http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/nodes/{id}&amp;nbsp; - more info &lt;A href="https://docs.alfresco.com/6.1/concepts/dev-api-by-language-alf-rest-update-node-metadata.html" target="_self" rel="nofollow noopener noreferrer"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;HTH,&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 11:11:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/cannot-update-cm-title-description-on-a-node-with-cm-versionable/m-p/88800#M26648</guid>
      <dc:creator>EddieMay</dc:creator>
      <dc:date>2020-04-22T11:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot update cm:title/description on a node with cm:versionable via REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/cannot-update-cm-title-description-on-a-node-with-cm-versionable/m-p/88801#M26649</link>
      <description>&lt;P&gt;Thanks a lot for your reply.&lt;/P&gt;&lt;P&gt;This is actually what I'm currently doing.&lt;BR /&gt;The request itself works fine on unversioned nodes and I don't really want to create a new version or anything like that. I just want to update properties of the current version. I also don't get an error back from the API. It just didn't apply some of the properties I sent.&lt;/P&gt;&lt;P&gt;This is the node I PUT to:&lt;/P&gt;&lt;PRE&gt;{
    "isFile": true,
    "createdByUser": {
        "id": "U1627",
        "displayName": "John Doe"
    },
    "modifiedAt": "2020-04-22T11:33:02.817+0000",
    "nodeType": "cm:content",
    "content": {
        "mimeType": "application\/pdf",
        "mimeTypeName": "Adobe PDF Document",
        "sizeInBytes": 115669,
        "encoding": "UTF-8"
    },
    "parentId": "95b9880d-6869-47e2-9353-c878ee7ced60",
    "aspectNames": [
        "rn:renditioned",
        "cm:versionable",
        "cm:titled",
        "cm:auditable",
        "cm:taggable",
        "cm:author",
        "cm:thumbnailModification"
    ],
    "createdAt": "2020-01-07T09:37:26.247+0000",
    "isFolder": false,
    "modifiedByUser": {
        "id": "U1627",
        "displayName": "John Doe"
    },
    "name": "Test.pdf",
    "id": "c30f7faf-2b5b-454d-aaac-a1e940c7330e",
    "properties": {
        "cm:title": "Old Title",
        "cm:versionType": "MINOR",
        "cm:versionLabel": "1.3",
        "cm:author": "New Author",
        "cm:lastThumbnailModification": [
            "doclib:1587546256239",
            "imgpreview:1587546256672"
        ],
        "cm:description": "Old Description",
        "cm:taggable": [
            "db4fccfe-b850-4eff-a5dd-5fcdfb8e15d9"
        ]
    }
}&lt;/PRE&gt;&lt;P&gt;This is my payload:&lt;/P&gt;&lt;PRE&gt;{
  "properties": [
    "cm:title": "New Title",
    "cm:description": "New Description",
    "cm:author": "New Author",
  ]
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;As you can see, cm:author got updated, but title and description are still "old".&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 11:50:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/cannot-update-cm-title-description-on-a-node-with-cm-versionable/m-p/88801#M26649</guid>
      <dc:creator>sboesch</dc:creator>
      <dc:date>2020-04-22T11:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot update cm:title/description on a node with cm:versionable via REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/cannot-update-cm-title-description-on-a-node-with-cm-versionable/m-p/88802#M26650</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/81363"&gt;@sboesch&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;I actually experienced the same result as you did with that call.&lt;/P&gt;
&lt;P&gt;However, I've just updated a versioned document's cm:title &amp;amp; cm:description using the following API call:&lt;/P&gt;
&lt;PRE&gt;http://localhost/alfresco/s/api/metadata/node/workspace/SpacesStore/3f43567d-a3ae-4b79-b56c-d52157defe9d?alf_ticket=TICKET_007669d537dd0bff8507331d9da1362ed5dcdec4&lt;/PRE&gt;
&lt;P&gt;The node I PUT to is:&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;PRE&gt;{
    "nodeRef": "workspace://SpacesStore/3f43567d-a3ae-4b79-b56c-d52157defe9d",
    "aspects": [
        "rn:renditioned",
        "cm:versionable",
        "cm:titled",
        "sys:cascadeUpdate",
        "cm:auditable",
        "sys:referenceable",
        "sys:localized",
        "cm:taggable",
        "cm:author",
        "cm:thumbnailModification"
    ],
    "mimetype": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
    "type": "cm:content",
    "properties": {
        "cm:created": "2020-04-03T13:46:54.555Z",
        "cm:lastThumbnailModification": [
            "pdf:1587563780477",
            "doclib:1587563785658"
        ],
        "cm:description": "test desc using ws",
        "cm:creator": "admin",
        "sys:node-uuid": "3f43567d-a3ae-4b79-b56c-d52157defe9d",
        "cm:name": "rename file",
        "cm:content": "contentUrl=store://2020/4/22/13/56/1189b2f1-23c6-4520-a3eb-4098079935e1.bin|mimetype=application/vnd.openxmlformats-officedocument.wordprocessingml.document|size=3560|encoding=UTF-8|locale=en_US_|id=325",
        "sys:store-identifier": "SpacesStore",
        "cm:versionLabel": "2.0",
        "sys:cascadeCRC": 2463522156,
        "cm:autoVersion": true,
        "cm:initialVersion": true,
        "cm:versionType": "MAJOR",
        "cm:autoVersionOnUpdateProps": false,
        "cm:title": "a title updated by API call",
        "sys:cascadeTx": 101,
        "cm:taggable": null,
        "sys:store-protocol": "workspace",
        "sys:node-dbid": 949,
        "sys:locale": "en_US",
        "cm:modifier": "admin",
        "cm:modified": "2020-04-22T16:26:09.217Z",
        "cm:author": "Eddie May"
    }
}&lt;/PRE&gt;
&lt;P&gt;My payload was:&lt;/P&gt;
&lt;PRE&gt;{
	"properties":{
		"cm:name": "rename file",
		"cm:title": "a title updated by API call",
		"cm:description": "test desc using ws"
	}
}&lt;/PRE&gt;
&lt;P&gt;I'm not sure if this means you have to use this particular API call to update versioned documents? I'll take a further look around and update if I discover more.&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 16:45:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/cannot-update-cm-title-description-on-a-node-with-cm-versionable/m-p/88802#M26650</guid>
      <dc:creator>EddieMay</dc:creator>
      <dc:date>2020-04-22T16:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot update cm:title/description on a node with cm:versionable via REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/cannot-update-cm-title-description-on-a-node-with-cm-versionable/m-p/88803#M26651</link>
      <description>&lt;P&gt;Thank you very much for looking into this.&lt;/P&gt;&lt;P&gt;I tried your alternative API call and noticed it only supports POST instead of PUT.&lt;BR /&gt;However, I still get the same results - cm:author gets updated, but cm:title and description not.&lt;/P&gt;&lt;P&gt;I'll check it again, to see if I missed something.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 17:07:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/cannot-update-cm-title-description-on-a-node-with-cm-versionable/m-p/88803#M26651</guid>
      <dc:creator>sboesch</dc:creator>
      <dc:date>2020-04-22T17:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot update cm:title/description on a node with cm:versionable via REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/cannot-update-cm-title-description-on-a-node-with-cm-versionable/m-p/88804#M26652</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I've just tried again using the api-explorer -&amp;nbsp;&lt;A href="http://localhost/api-explorer/#!/nodes/updateNode" target="_blank" rel="nofollow noopener noreferrer"&gt;http://localhost/api-explorer/#!/nodes/updateNode.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Using the PUT cmd I've been able to update cm:title &amp;amp; cm:description of a versioned document.&lt;/P&gt;
&lt;PRE&gt;curl -X PUT --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'Authorization: Basic YWRtaW46YWRtaW4=' -d '{
  
  "properties":
  {
    "cm:title":"My NEW title",
    "cm:description":"This is an important doc"
  }
}' 'http://localhost/alfresco/api/-default-/public/alfresco/versions/1/nodes/3f43567d-a3ae-4b79-b56c-d52157defe9d'&lt;/PRE&gt;
&lt;P&gt;Request URL:&lt;/P&gt;
&lt;PRE&gt;http://localhost/alfresco/api/-default-/public/alfresco/versions/1/nodes/3f43567d-a3ae-4b79-b56c-d52157defe9d
&lt;/PRE&gt;
&lt;P&gt;Response body:&lt;/P&gt;
&lt;PRE&gt;{
  "entry": {
    "isFile": true,
    "createdByUser": {
      "id": "admin",
      "displayName": "Administrator"
    },
    "modifiedAt": "2020-04-23T13:26:54.465+0000",
    "nodeType": "cm:content",
    "content": {
      "mimeType": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
      "mimeTypeName": "Microsoft Word 2007",
      "sizeInBytes": 48,
      "encoding": "UTF-8"
    },
    "parentId": "479ec2bc-fb73-4e93-9c44-b36d08ba0446",
    "aspectNames": [
      "rn:renditioned",
      "cm:versionable",
      "cm:titled",
      "cm:auditable",
      "cm:taggable",
      "cm:rateable",
      "cm:likesRatingSchemeRollups",
      "cm:author",
      "cm:thumbnailModification"
    ],
    "createdAt": "2020-04-03T13:46:54.555+0000",
    "isFolder": false,
    "modifiedByUser": {
      "id": "admin",
      "displayName": "Administrator"
    },
    "name": "rename file",
    "id": "3f43567d-a3ae-4b79-b56c-d52157defe9d",
    "properties": {
      "cm:title": "My NEW title",
      "cm:versionType": "MINOR",
      "cm:versionLabel": "2.1",
      "cm:author": "BoPeep 3",
      "cm:likesRatingSchemeTotal": 1,
      "cm:likesRatingSchemeCount": 1,
      "cm:lastThumbnailModification": [
        "pdf:1587645057519",
        "doclib:1587645059840"
      ],
      "cm:description": "This is an important doc"
    }
  }
}
&lt;/PRE&gt;
&lt;P&gt;Payload body&lt;/P&gt;
&lt;PRE&gt;{
  "properties":
  {
    "cm:title":"My NEW title",
    "cm:description":"This is an important doc"
  }
}&lt;/PRE&gt;
&lt;P&gt;What version of Alfresco are you running? I'm running 6.2 GA201911.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2020 13:36:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/cannot-update-cm-title-description-on-a-node-with-cm-versionable/m-p/88804#M26652</guid>
      <dc:creator>EddieMay</dc:creator>
      <dc:date>2020-04-23T13:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot update cm:title/description on a node with cm:versionable via REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/cannot-update-cm-title-description-on-a-node-with-cm-versionable/m-p/88805#M26653</link>
      <description>&lt;P&gt;Alright, apparently we are still on Version 5.2.e/f. We'll try to update.&lt;BR /&gt;Thanks for your effort.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2020 14:37:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/cannot-update-cm-title-description-on-a-node-with-cm-versionable/m-p/88805#M26653</guid>
      <dc:creator>sboesch</dc:creator>
      <dc:date>2020-04-23T14:37:21Z</dc:date>
    </item>
  </channel>
</rss>

