Skip to main content

Properties

NameTypeDescriptionExample
keystringThe taxonomy key0/1
namestringThe localized taxonomy name
pathstringThe full taxonomy node pathRoot/Movies/Genres
hasChildrenbooleanWhether or not the node has any child nodes
childrenobject[...]A list of child taxonomy nodes

Example

This example shows a taxonomy node object with child taxonomy nodes

JSON
{
    "key": "0",
    "name": "Root",
    "path": "Root",
    "hasChildren": true,
    "children": [
        {
            "key": "0/1",
            "name": "Movies",
            "path": "Root/Movies",
            "hasChildren": true,
            "children": [
                {
                    "key": "0/1/2",
                    "name": "Genres",
                    "path": "Root/Movies/Genres",
                    "hasChildren": false,
                    "children": []
                }
            ]
        }        
    ]
}

This example shows a taxonomy node object with child taxonomy nodes

JSON
{
    "key": "0",
    "name": "Root",
    "path": "Root",
    "hasChildren": true,
    "children": [
        {
            "key": "0/1",
            "name": "Movies",
            "path": "Root/Movies",
            "hasChildren": true,
            "children": [
                {
                    "key": "0/1/2",
                    "name": "Genres",
                    "path": "Root/Movies/Genres",
                    "hasChildren": false,
                    "children": []
                }
            ]
        }        
    ]
}

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