Get a taxonomy run's tree
GET/v1/taxonomy/runs/{run_id}/tree
Returns the run and its taxonomy tree (visible nodes only; soft-removed nodes are excluded). Tenant-scoped; returns 404 if the run does not belong to the tenant.
Path Parameters
run_id: string
formatuuid
Query Parameters
tenant_id: string
Tenant that owns the run.
minLength1
maxLength255
Returns
Get a taxonomy run's tree
curl http://localhost:8080/v1/taxonomy/runs/$RUN_ID/tree \
-H "Authorization: Bearer $HUB_API_KEY"{
"root": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"created_at": "2019-12-27T18:11:19.117Z",
"label": "label",
"level": 0,
"node_type": "root",
"run_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"sort_order": 0,
"updated_at": "2019-12-27T18:11:19.117Z",
"children": [],
"cluster_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"description": "description",
"metadata": {
"foo": "bar"
},
"original_label": "original_label",
"parent_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"removed_at": "2019-12-27T18:11:19.117Z",
"removed_by": "removed_by"
},
"run": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"cluster_count": 0,
"created_at": "2019-12-27T18:11:19.117Z",
"embedding_count": 0,
"field_id": "field_id",
"node_count": 0,
"record_count": 0,
"source_id": "source_id",
"source_type": "source_type",
"status": "pending",
"tenant_id": "tenant_id",
"updated_at": "2019-12-27T18:11:19.117Z",
"error": "error",
"error_code": "insufficient_data",
"field_label": "field_label",
"finished_at": "2019-12-27T18:11:19.117Z",
"metrics": {
"foo": "bar"
},
"params": {
"foo": "bar"
},
"started_at": "2019-12-27T18:11:19.117Z"
}
}Returns Examples
{
"root": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"created_at": "2019-12-27T18:11:19.117Z",
"label": "label",
"level": 0,
"node_type": "root",
"run_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"sort_order": 0,
"updated_at": "2019-12-27T18:11:19.117Z",
"children": [],
"cluster_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"description": "description",
"metadata": {
"foo": "bar"
},
"original_label": "original_label",
"parent_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"removed_at": "2019-12-27T18:11:19.117Z",
"removed_by": "removed_by"
},
"run": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"cluster_count": 0,
"created_at": "2019-12-27T18:11:19.117Z",
"embedding_count": 0,
"field_id": "field_id",
"node_count": 0,
"record_count": 0,
"source_id": "source_id",
"source_type": "source_type",
"status": "pending",
"tenant_id": "tenant_id",
"updated_at": "2019-12-27T18:11:19.117Z",
"error": "error",
"error_code": "insufficient_data",
"field_label": "field_label",
"finished_at": "2019-12-27T18:11:19.117Z",
"metrics": {
"foo": "bar"
},
"params": {
"foo": "bar"
},
"started_at": "2019-12-27T18:11:19.117Z"
}
}