Download OpenAPI specification:
Versioned, object-centered metric authoring and lifecycle APIs.
| kn_id required | string |
| branch | string Default: "main" |
| owner_object_type_id | string |
| metric_type | string (ObjectMetricType) Enum: "atomic" "derived" "composite" |
| status | string (LifecycleStatus) Enum: "draft" "validated" "published" "deprecated" |
| keyword | string |
| offset | integer >= 0 Default: 0 |
| limit | integer [ 1 .. 500 ] Default: 20 |
{- "entries": [
- {
- "definition": {
- "id": "string",
- "version": 1,
- "code": "string",
- "name": "string",
- "description": "string",
- "owner_object_type_id": "string",
- "metric_type": "atomic",
- "result_semantics": { },
- "specification": {
- "kind": "atomic",
- "measure": {
- "aggregation": "count_rows",
- "allow_approximate": true,
- "expression": {
- "node_type": "property"
}
}
}, - "query_capabilities": { },
- "lifecycle": { }
}, - "owner_object_type_name": "string",
- "kn_id": "string",
- "branch": "string",
- "creator": { },
- "updater": { },
- "create_time": 0,
- "update_time": 0
}
], - "total_count": 0
}| kn_id required | string |
| branch | string Default: "main" |
| id | string Ignored on create; protected on update. |
| version | integer >= 1 |
| code required | string^[a-z][a-z0-9_]*$ |
| name required | string non-empty |
| description required | string non-empty |
| owner_object_type_id required | string |
| metric_type required | string (ObjectMetricType) Enum: "atomic" "derived" "composite" |
required | object |
required | AtomicSpecification (object) or DerivedSpecification (object) or CompositeSpecification (object) |
required | object |
required | object |
{- "id": "string",
- "version": 1,
- "code": "string",
- "name": "string",
- "description": "string",
- "owner_object_type_id": "string",
- "metric_type": "atomic",
- "result_semantics": { },
- "specification": {
- "kind": "atomic",
- "measure": {
- "aggregation": "count_rows",
- "allow_approximate": true,
- "expression": {
- "node_type": "property"
}
}
}, - "query_capabilities": { },
- "lifecycle": { }
}{- "definition": {
- "id": "string",
- "version": 1,
- "code": "string",
- "name": "string",
- "description": "string",
- "owner_object_type_id": "string",
- "metric_type": "atomic",
- "result_semantics": { },
- "specification": {
- "kind": "atomic",
- "measure": {
- "aggregation": "count_rows",
- "allow_approximate": true,
- "expression": {
- "node_type": "property"
}
}
}, - "query_capabilities": { },
- "lifecycle": { }
}, - "owner_object_type_name": "string",
- "kn_id": "string",
- "branch": "string",
- "creator": { },
- "updater": { },
- "create_time": 0,
- "update_time": 0
}| kn_id required | string |
| branch | string Default: "main" |
| id | string Ignored on create; protected on update. |
| version | integer >= 1 |
| code required | string^[a-z][a-z0-9_]*$ |
| name required | string non-empty |
| description required | string non-empty |
| owner_object_type_id required | string |
| metric_type required | string (ObjectMetricType) Enum: "atomic" "derived" "composite" |
required | object |
required | AtomicSpecification (object) or DerivedSpecification (object) or CompositeSpecification (object) |
required | object |
required | object |
{- "id": "string",
- "version": 1,
- "code": "string",
- "name": "string",
- "description": "string",
- "owner_object_type_id": "string",
- "metric_type": "atomic",
- "result_semantics": { },
- "specification": {
- "kind": "atomic",
- "measure": {
- "aggregation": "count_rows",
- "allow_approximate": true,
- "expression": {
- "node_type": "property"
}
}
}, - "query_capabilities": { },
- "lifecycle": { }
}{- "valid": true,
- "issues": [
- {
- "code": "string",
- "field": "string",
- "message": "string"
}
], - "output_shape": "summary"
}| kn_id required | string |
| branch | string Default: "main" |
| id | string Ignored on create; protected on update. |
| version | integer >= 1 |
| code required | string^[a-z][a-z0-9_]*$ |
| name required | string non-empty |
| description required | string non-empty |
| owner_object_type_id required | string |
| metric_type required | string (ObjectMetricType) Enum: "atomic" "derived" "composite" |
required | object |
required | AtomicSpecification (object) or DerivedSpecification (object) or CompositeSpecification (object) |
required | object |
required | object |
{- "id": "string",
- "version": 1,
- "code": "string",
- "name": "string",
- "description": "string",
- "owner_object_type_id": "string",
- "metric_type": "atomic",
- "result_semantics": { },
- "specification": {
- "kind": "atomic",
- "measure": {
- "aggregation": "count_rows",
- "allow_approximate": true,
- "expression": {
- "node_type": "property"
}
}
}, - "query_capabilities": { },
- "lifecycle": { }
}{- "validation": {
- "valid": true,
- "issues": [
- {
- "code": "string",
- "field": "string",
- "message": "string"
}
], - "output_shape": "summary"
}, - "output_schema": { }
}| kn_id required | string |
| metric_id required | string <uuid> |
| branch | string Default: "main" |
| version | integer >= 1 |
{- "definition": {
- "id": "string",
- "version": 1,
- "code": "string",
- "name": "string",
- "description": "string",
- "owner_object_type_id": "string",
- "metric_type": "atomic",
- "result_semantics": { },
- "specification": {
- "kind": "atomic",
- "measure": {
- "aggregation": "count_rows",
- "allow_approximate": true,
- "expression": {
- "node_type": "property"
}
}
}, - "query_capabilities": { },
- "lifecycle": { }
}, - "owner_object_type_name": "string",
- "kn_id": "string",
- "branch": "string",
- "creator": { },
- "updater": { },
- "create_time": 0,
- "update_time": 0
}| kn_id required | string |
| metric_id required | string <uuid> |
| branch | string Default: "main" |
| version | integer >= 1 |
| id | string Ignored on create; protected on update. |
| version | integer >= 1 |
| code required | string^[a-z][a-z0-9_]*$ |
| name required | string non-empty |
| description required | string non-empty |
| owner_object_type_id required | string |
| metric_type required | string (ObjectMetricType) Enum: "atomic" "derived" "composite" |
required | object |
required | AtomicSpecification (object) or DerivedSpecification (object) or CompositeSpecification (object) |
required | object |
required | object |
{- "id": "string",
- "version": 1,
- "code": "string",
- "name": "string",
- "description": "string",
- "owner_object_type_id": "string",
- "metric_type": "atomic",
- "result_semantics": { },
- "specification": {
- "kind": "atomic",
- "measure": {
- "aggregation": "count_rows",
- "allow_approximate": true,
- "expression": {
- "node_type": "property"
}
}
}, - "query_capabilities": { },
- "lifecycle": { }
}{- "definition": {
- "id": "string",
- "version": 1,
- "code": "string",
- "name": "string",
- "description": "string",
- "owner_object_type_id": "string",
- "metric_type": "atomic",
- "result_semantics": { },
- "specification": {
- "kind": "atomic",
- "measure": {
- "aggregation": "count_rows",
- "allow_approximate": true,
- "expression": {
- "node_type": "property"
}
}
}, - "query_capabilities": { },
- "lifecycle": { }
}, - "owner_object_type_name": "string",
- "kn_id": "string",
- "branch": "string",
- "creator": { },
- "updater": { },
- "create_time": 0,
- "update_time": 0
}Deletes exactly one version in the requested knowledge-network branch. Metric references are branch-local because a metric reference does not carry a branch. Published versions and versions referenced by any retained metric version cannot be deleted.
| kn_id required | string |
| metric_id required | string <uuid> |
| branch | string Default: "main" |
| version required | integer >= 1 |
Checks the same branch-local constraints enforced atomically by DELETE. Blocker details are filtered by view permission; hidden blockers are reported only as a count.
| kn_id required | string |
| metric_id required | string <uuid> |
| branch | string Default: "main" |
| version required | integer >= 1 |
{- "metric_id": "string",
- "metric_name": "string",
- "version": 1,
- "status": "draft",
- "deletable": true,
- "blockers": [
- {
- "resource_type": "metric_version",
- "resource_id": "string",
- "version": 1,
- "name": "string",
- "field": "string"
}
], - "hidden_blocker_count": 0
}| kn_id required | string |
| metric_id required | string <uuid> |
| branch | string Default: "main" |
{- "definition": {
- "id": "string",
- "version": 1,
- "code": "string",
- "name": "string",
- "description": "string",
- "owner_object_type_id": "string",
- "metric_type": "atomic",
- "result_semantics": { },
- "specification": {
- "kind": "atomic",
- "measure": {
- "aggregation": "count_rows",
- "allow_approximate": true,
- "expression": {
- "node_type": "property"
}
}
}, - "query_capabilities": { },
- "lifecycle": { }
}, - "owner_object_type_name": "string",
- "kn_id": "string",
- "branch": "string",
- "creator": { },
- "updater": { },
- "create_time": 0,
- "update_time": 0
}| kn_id required | string |
| metric_id required | string <uuid> |
| branch | string Default: "main" |
[- {
- "definition": {
- "id": "string",
- "version": 1,
- "code": "string",
- "name": "string",
- "description": "string",
- "owner_object_type_id": "string",
- "metric_type": "atomic",
- "result_semantics": { },
- "specification": {
- "kind": "atomic",
- "measure": {
- "aggregation": "count_rows",
- "allow_approximate": true,
- "expression": {
- "node_type": "property"
}
}
}, - "query_capabilities": { },
- "lifecycle": { }
}, - "owner_object_type_name": "string",
- "kn_id": "string",
- "branch": "string",
- "creator": { },
- "updater": { },
- "create_time": 0,
- "update_time": 0
}
]| kn_id required | string |
| metric_id required | string <uuid> |
| branch | string Default: "main" |
| version required | integer >= 1 |
{- "definition": {
- "id": "string",
- "version": 1,
- "code": "string",
- "name": "string",
- "description": "string",
- "owner_object_type_id": "string",
- "metric_type": "atomic",
- "result_semantics": { },
- "specification": {
- "kind": "atomic",
- "measure": {
- "aggregation": "count_rows",
- "allow_approximate": true,
- "expression": {
- "node_type": "property"
}
}
}, - "query_capabilities": { },
- "lifecycle": { }
}, - "owner_object_type_name": "string",
- "kn_id": "string",
- "branch": "string",
- "creator": { },
- "updater": { },
- "create_time": 0,
- "update_time": 0
}Runs authoritative validation for a saved draft and persists its lifecycle status as validated. Any later edit returns it to draft.
| kn_id required | string |
| metric_id required | string <uuid> |
| branch | string Default: "main" |
| version required | integer >= 1 |
{- "definition": {
- "id": "string",
- "version": 1,
- "code": "string",
- "name": "string",
- "description": "string",
- "owner_object_type_id": "string",
- "metric_type": "atomic",
- "result_semantics": { },
- "specification": {
- "kind": "atomic",
- "measure": {
- "aggregation": "count_rows",
- "allow_approximate": true,
- "expression": {
- "node_type": "property"
}
}
}, - "query_capabilities": { },
- "lifecycle": { }
}, - "owner_object_type_name": "string",
- "kn_id": "string",
- "branch": "string",
- "creator": { },
- "updater": { },
- "create_time": 0,
- "update_time": 0
}| kn_id required | string |
| metric_id required | string <uuid> |
| branch | string Default: "main" |
| version required | integer >= 1 |
{- "definition": {
- "id": "string",
- "version": 1,
- "code": "string",
- "name": "string",
- "description": "string",
- "owner_object_type_id": "string",
- "metric_type": "atomic",
- "result_semantics": { },
- "specification": {
- "kind": "atomic",
- "measure": {
- "aggregation": "count_rows",
- "allow_approximate": true,
- "expression": {
- "node_type": "property"
}
}
}, - "query_capabilities": { },
- "lifecycle": { }
}, - "owner_object_type_name": "string",
- "kn_id": "string",
- "branch": "string",
- "creator": { },
- "updater": { },
- "create_time": 0,
- "update_time": 0
}