curl --request GET \
--url https://api.example.com/orgs/{org_id}/hierarchy{
"entries": [
{
"node_id": "<string>",
"title": "<string>",
"path": "<string>",
"depth": 123,
"is_directory": true,
"org_id": "<string>",
"org_name": "<string>"
}
],
"total": 123
}Get the containment hierarchy for an organization.
Returns all nodes and their positions in the parent/child ownership structure, without user-assigned directories. Used by the CLI tree command.
curl --request GET \
--url https://api.example.com/orgs/{org_id}/hierarchy{
"entries": [
{
"node_id": "<string>",
"title": "<string>",
"path": "<string>",
"depth": 123,
"is_directory": true,
"org_id": "<string>",
"org_name": "<string>"
}
],
"total": 123
}