get_hierarchy
Read only
Read a product's hierarchy: its category tree and where each feature sits, or each feature's documentation.
Set view to one of these (full when left out):
full(needsproductId; optionalcategoryId,limit,cursor): The tree with every field: categories depth-first (top level by position, rest A to Z;parentIdnull at top), then features by category A to Z, unplaced (categoryIdnull) last, with descriptions, who set each value, positions (as added),sourcepages; andbuild, the latest grouping after a knowledge base read or rebuild (queued, completed or failed;categoriesUnnamed: categories whose features could not be named yet).categoryIdreads only that category's branch. Every page answersversion, the tree's fingerprint: send it asexpectedVersionwithapply_hierarchy_changes, so a change planned from this read is refused if the tree changed since. If the tree changes between pages, the next page answersconflict: read again from the first page.compact(needsproductId; optionalcategoryId,limit,cursor): Asfull, with only ids, titles, places and each category'sfeatureCount(features in it and below): the way to see how a product is organised.documentation(needsproductId; optionallimit,cursor): Each feature with its documentation: its page (source), an excerpt of the page's own text (up to 500 words), its title and description (null until named),removedAtonce a completed read no longer found the page, andrelinks, its latest 10 moves to another page, newest first (page_no_longer_describes_feature,page_removedorpage_found_again, each with from and to page andrelinkedAt). Newest feature first (then id), 10 a page; noversionand no places (the tree views show those).
Actions (set view)
full
- Who can use it
- Admins, and the product's Owners and Viewers
- Hints
- Read only
- Runs
get_hierarchy- Inputs
productIdstring, requiredFrom
read_productwith actionlistorget_me.categoryIdstringFrom
searchorget_hierarchy.limitintegerHow many items a page holds, 1 to 1000 (50 in the full view, 300 in the compact view when left out). A larger page may be cut off by your client.
cursorstringThe previous page's
meta.nextCursor, with the sameviewandcategoryId; left out: the first page.
compact
- Who can use it
- Admins, and the product's Owners and Viewers
- Hints
- Read only
- Runs
get_hierarchy- Inputs
productIdstring, requiredFrom
read_productwith actionlistorget_me.categoryIdstringFrom
searchorget_hierarchy.limitintegerHow many items a page holds, 1 to 1000 (50 in the full view, 300 in the compact view when left out). A larger page may be cut off by your client.
cursorstringThe previous page's
meta.nextCursor, with the sameviewandcategoryId; left out: the first page.
documentation
- Who can use it
- Admins, and the product's Owners and Viewers
- Hints
- Read only
- Runs
list_features- Inputs
productIdstring, requiredFrom
read_productwith actionlistorget_me.limitintegerHow many features to return, 1 to 20 (10 when left out).
cursorstringThe previous page's
meta.nextCursor; left out: the first page.