Well Known Node Id Aliases - Alfresco Content Services - 23.4 - 23.4 - Ready - Alfresco - external

Alfresco Content Services

Platform
Alfresco
Product
Alfresco Content Services
Release
23.4
License

There are several endpoints across the API that expect a node id as part of the URL, this is OK if the client knows the node id, but there are some scenarios where it might not be known, for example when starting to navigate the folder hierarchy.

For this scenario the API supports the following node id aliases:

  • -root-: corresponds to the node id for the /Company Home folder.
  • -shared-: corresponds to the node id for the /Company Home/Shared folder.
  • -my-: corresponds to the node id for the current user’s home folder (i.e. /Company Home/User Homes/{userid}).

The http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/nodes/-root-/children request shows how you can list the contents (children) of the /Company Home folder without knowing its node id.