Get site navigation tree
Changed onReturns the dotCMS site navigation tree starting at the given folder URI, up to the specified depth. Only objects marked as 'show on menu' are included. The URI must resolve to a folder — page URIs (e.g., '/index', '/about-us/team') will return 404. Use '/' to fetch the navigation tree for the site root.
Request
- Base URLhttps://docs.anzworldline-solutions.com.au
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Starting folder URI for the navigation tree (e.g., '/about-us', '/blog', or '/' for the site root). Must resolve to a folder — page URIs return 404.
Query parameters
Total number of levels to include, counting the starting node as level 1. depth=1 returns only the starting node with no children; depth=2 returns the node plus its direct children. Values exceeding the actual tree depth return the full subtree. Values less than 1 are treated as 1. (default: 1)
Tags each returned node with this language ID. Note: folder names are language-neutral in dotCMS and are not translated — this parameter only affects the 'languageId' attribute on each node, not the visible 'title'. Defaults to the language of the current request.
Response
Navigation tree retrieved successfully
Changes
- breaking
added the pattern
.*to thepathrequest parameteruri - breaking
for the
queryrequest parameterdepth, the type changed fromstringtointeger, and format from no format toint32 - breaking
for the
queryrequest parameterlanguageId, the type changed fromstringtointeger, and format from no format toint64 - info
api operation id
loadJson_1removed and replaced withgetNavigationTree - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the success response with the status
- breaking