Skip to main content

Get ancestor nodes

Log in to add to favourites
GET/api/delivery/projects/{projectId}/nodes/{nodeId}/ancestors

Parameters

NameParameter typeTypeFormatDescription
projectId(required)pathstring-The project identifier found in the project overview screen of the management console.
nodeId(required)pathstringuuidThe node identifier as a 128 bit GUID
languagequerystringlanguageThe specified language for the node. If no value is provided then the menu order is removed for all languages
startLevelquerynumberintegerThe level of the top ancestor node to return. If no value is provided then the level will be 1 (root)
versionStatusquerystring-The status of the associated entry, either published or latest. The default is published
entryFieldsquerystring-A comma separated list of entry fields to include in the entry response. Specify * to include all entry fields
entryLinkDepthquerynumber-The depth at which to resolve the full entry data for a linked entry or asset, with a maximum depth value of 10

Responses

HTTP status codeReasonModel
200SuccessNode
404Project not foundError
404Node not foundError
500Internal server errorError

Examples

HTTP
GET: /api/delivery/projects/movieDb/nodes/d014533c-2f4e-4f73-b9f5-ff107755080b/ancestors?language=en-GB&depth=1&versionStatus=latest

Remarks

The nodes will be returned in level order ascending, i.e. root -> leaf. If the node is the root, then an empty list will be returned.

Still need help?

If you still need help after reading this article, don't hesitate to reach out to the Contensis community on Slack or raise a support ticket to get help from our team.
New support request