cancel
Showing results for 
Search instead for 
Did you mean: 

Fetch document title in alfresco api

mahesh
Champ in-the-making
Champ in-the-making

Hello,

I am trying to fetch documents title in alfresco with api.
i am able to access the properties like- name,modified date... but unable to fetch document title. pls guide

1 REPLY 1

fedorow
Elite Collaborator
Elite Collaborator

The cm:title is the node property. GET nodes request return it without any additional parameters. If node does not have title then there is no this property in the API response. The path is ['entry'].['properies'].['cm:title'].

{
  "entry": {
    ...
    "name": "Test.docx",
    "id": "5053cfe3-9f95-4938-8f58-283e03a6ea1f",
    "properties": {
      "cm:title": "test document title",
      ....
    }
  }
}