Get hierarchical tree structure for nodes of a specific subkind
Parameters
Output
Encoding
application/jsonrelationSlug
string
Required
Relation used for hierarchy
roots
array
Required
Root nodes with children
subkind
string
Required
Subkind of hierarchy
Try It
Requests are sent directly from your browser. Some servers may block requests due to CORS.
View raw schema
{
"type": "query",
"output": {
"schema": {
"type": "object",
"required": [
"roots",
"subkind",
"relationSlug"
],
"properties": {
"roots": {
"type": "array",
"items": {
"ref": "#hierarchyItem",
"type": "ref"
},
"description": "Root nodes with children"
},
"subkind": {
"type": "string",
"description": "Subkind of hierarchy"
},
"relationSlug": {
"type": "string",
"description": "Relation used for hierarchy"
}
}
},
"encoding": "application/json"
},
"parameters": {
"type": "params",
"required": [
"subkind"
],
"properties": {
"subkind": {
"type": "string",
"description": "Subkind to get hierarchy for (e.g., field)"
},
"relationSlug": {
"type": "string",
"default": "broader",
"description": "Relation slug for hierarchy traversal"
}
}
},
"description": "Get hierarchical tree structure for nodes of a specific subkind"
}