In Luzmo all columns which deal with text values are of type hierarchy. On such a hierarchy column you can build a hierarchy out of your existing data values. To do so you first need to create hierarchy levels and associate them with a column. By associating hierarchy levels with a column we essentially define how many levels there are in the tree structure and define the metadata of these levels. Afterwards you can push hierarchy updates to the column to populate the tree structure using the hierarchy service .
Any user with an API token can create a hierarchylevel. In order to use the hierarchylevel you will have to associate it to a column. Note that the level ids have to be correct and you need to take into account that there is a root level and a values level. For example, if you insert your first hierarchy level, it would have level 1 and the values level should be moved to level 2.
npm install @luzmo/nodejs-sdk{
"id": "c25b2053-a44e-4748-8310-1a797f6d16ed",
"level": 0,
"name": {
"nl": "Alle",
"fr": "Tout",
"en": "All"
},
"cardinality": 1,
"created_at": "2018-08-30T08:05:38.381Z",
"updated_at": "2018-08-30T08:05:38.381Z",
"column_id": "c442c981-7bdf-4a53-929b-d39bf6256f8f",
"color": null
}