Download OpenAPI specification:
Knowledge-network CRUD uses knowledge_network:{kn_id}. Create requires
knowledge_network:*:create; detail, list, update, and delete use the
corresponding instance operations. Lists are authorization-filtered before
total and pagination. See ../knowledge-network-authorization.md.
Main-branch import and overwrite perform Proxy source preflight before strict child validation. The effective delegator chosen for retained or new sources is reused for the corresponding operation-scoped dependency lookup. Nested child dependency errors keep their 400/403/502/503 status and child error code instead of being rewritten as a generic knowledge-network error.
| name_pattern | string Fuzzy match by business knowledge network name. Defaults to empty. |
| sort | string Enum: "update_time" "name" Sort type. Defaults to update_time. |
| direction | string Enum: "asc" "desc" Sort direction. Supported values are asc and desc. Defaults to desc. |
| offset | integer <int64> Offset of the first returned item. Must be greater than or equal to 0. Defaults to 0. |
| limit | integer <int64> Maximum number of items returned per page. Pagination accepts 1 through 1000, and -1 disables pagination. Defaults to 10. |
| tag | string Exact match by tag. Defaults to empty. |
{- "entries": [
- {
- "id": "string",
- "name": "string",
- "tags": [
- "string"
], - "comment": "string",
- "icon": "string",
- "color": "string",
- "branch": "string",
- "skill_content": "string",
- "creator": {
- "id": "a0f02238-6cec-11f0-82bb-fa1c4529a151",
- "type": "user",
- "name": "Administrator"
}, - "create_time": 0,
- "updater": {
- "id": "a0f02238-6cec-11f0-82bb-fa1c4529a151",
- "type": "user",
- "name": "Administrator"
}, - "update_time": 0,
- "statistics": {
- "object_types_total": 0,
- "relation_types_total": 0,
- "action_types_total": 0,
- "concept_groups_total": 0,
- "risk_types_total": 0,
- "metrics_total": 0,
- "skills_total": 0,
- "functions_total": 0,
- "apis_total": 0,
- "mcp_tools_total": 0
}, - "concept_groups": [
- {
- "id": "string",
- "name": "string",
- "tags": [
- "string"
], - "comment": "string",
- "icon": "string",
- "color": "string",
- "kn_id": "string",
- "branch": "string",
- "creator": {
- "id": "a0f02238-6cec-11f0-82bb-fa1c4529a151",
- "type": "user",
- "name": "Administrator"
}, - "create_time": 0,
- "updater": {
- "id": "a0f02238-6cec-11f0-82bb-fa1c4529a151",
- "type": "user",
- "name": "Administrator"
}, - "update_time": 0
}
], - "object_types": [
- {
- "id": "string",
- "name": "string",
- "tags": [
- "string"
], - "comment": "string",
- "icon": "string",
- "color": "string",
- "branch": "string",
- "kn_id": "string",
- "concept_groups": [
- {
- "id": "string",
- "name": "string"
}
], - "data_source": {
- "type": "resource",
- "id": "string",
- "name": "string"
}, - "data_properties": [
- {
- "name": "string",
- "display_name": "string",
- "type": "string",
- "comment": "string",
- "mapped_field": "string",
- "index": true,
- "fulltext_config": {
- "analyzer": "string",
- "field_keyword": true
}, - "vector_config": {
- "dimension": 0
}
}
], - "logic_properties": [
- {
- "name": "string",
- "display_name": "string",
- "type": "string",
- "comment": "string",
- "index": true,
- "data_source": {
- "type": "resource",
- "id": "string",
- "name": "string"
}, - "parameters": [
- {
- "name": "string",
- "value_from": "property",
- "value": "string"
}
]
}
], - "primary_keys": [
- "string"
], - "display_key": "string",
- "creator": {
- "id": "a0f02238-6cec-11f0-82bb-fa1c4529a151",
- "type": "user",
- "name": "Administrator"
}, - "create_time": 0,
- "updater": {
- "id": "a0f02238-6cec-11f0-82bb-fa1c4529a151",
- "type": "user",
- "name": "Administrator"
}, - "update_time": 0
}
], - "relation_types": [
- {
- "id": "string",
- "name": "string",
- "tags": [
- "string"
], - "comment": "string",
- "icon": "string",
- "color": "string",
- "branch": "string",
- "kn_id": "string",
- "concept_groups": [
- {
- "id": "string",
- "name": "string"
}
], - "source_object_type_id": "string",
- "source_object_type_name": "string",
- "target_object_type_id": "string",
- "target_object_type_name": "string",
- "type": "direct",
- "mapping_rules": { },
- "creator": {
- "id": "a0f02238-6cec-11f0-82bb-fa1c4529a151",
- "type": "user",
- "name": "Administrator"
}, - "create_time": 0,
- "updater": {
- "id": "a0f02238-6cec-11f0-82bb-fa1c4529a151",
- "type": "user",
- "name": "Administrator"
}, - "update_time": 0
}
], - "action_types": [
- {
- "id": "string",
- "name": "string",
- "tags": [
- "string"
], - "comment": "string",
- "icon": "string",
- "color": "string",
- "branch": "string",
- "kn_id": "string",
- "concept_groups": [
- {
- "id": "string",
- "name": "string"
}
], - "action_type": "add",
- "action_intent": "add",
- "object_type_id": "string",
- "object_type_name": "string",
- "condition": {
- "object_type_id": "string",
- "field": "string",
- "operation": "and",
- "sub_conditions": [
- { }
], - "value": null,
- "value_from": "const"
}, - "affect": {
- "object_type": "string",
- "comment": "string",
- "expected_operation": "add",
- "affected_fields": [
- "string"
]
}, - "impact_contracts": [
- {
- "object_type_id": "string",
- "expected_operation": "add",
- "description": "string",
- "affected_fields": [
- "string"
]
}
], - "action_source": {
- "type": "resource",
- "id": "string",
- "name": "string"
}, - "parameters": [
- {
- "name": "string",
- "value_from": "property",
- "value": "string"
}
], - "schedule": {
- "type": "FIX_RATE",
- "expression": "string"
}
}
], - "module_type": "string",
- "operations": [
- "string"
]
}
], - "total_count": 0
}| import_mode | string Enum: "normal" "ignore" "overwrite" Import mode. Supported values are normal, ignore, and overwrite. Defaults to normal. |
| strict_mode | boolean Default: true Whether to strictly validate dependencies. Defaults to true. When true, validates dependencies such as object type and relation type views. When false, missing dependencies do not cause an error. |
| binding_policy | string Default: "preserve" Enum: "preserve" "detach" Controls environment-local bindings in the imported model. preserve keeps resource, Tool Box, MCP, and indirect-relation backing resource identifiers and applies proxy permission checks. detach removes those identifiers while preserving model topology for later incremental binding. The request is structurally validated before detachment; persistence then skips dependency lookups for the removed environment-local bindings. |
| validate_dependency | boolean Deprecated Default: true Deprecated. Use strict_mode instead. This parameter is retained for compatibility and is read when strict_mode is empty. |
| branch | string Default: "main" Branch. Defaults to main. |
| id | string Business knowledge network ID. Immutable after creation. May contain lowercase letters, digits, underscores, and hyphens, and cannot start with an underscore or hyphen. |
| name required | string Business knowledge network name |
| tags | Array of strings Tags used for business identification |
| comment | string Comment |
| icon | string Icon |
| color | string Color |
| branch required | string Branch ID |
{- "id": "string",
- "name": "string",
- "tags": [
- "string"
], - "comment": "string",
- "icon": "string",
- "color": "string",
- "branch": "string"
}{- "id": "example-knowledge-network-id"
}Gets ontology model details and includes specification content when requested.
| kn_id required | string Business knowledge network ID |
| mode | string Enum: "" "export" Query mode. Currently supports export. By default, returns only knowledge network details and not the child types, in which case detail_level has nothing to act on. |
| include_statistics | boolean Whether to include statistics for concepts under the business knowledge network. Defaults to false. |
| branch | string Default: "main" Branch. Defaults to main. |
| detail_level | string Default: "full" Enum: "full" "summary" Response detail level for the concept definitions, so it only has an effect together with mode=export. Without that mode the response carries no child types at all and the two values return the same bytes. full returns every concept in full and is the default, kept so an existing caller sees no change. summary trims the object types and the relation types, and nothing else. It is defined by what it removes, so anything not named here is returned as full returns it: an object type keeps its own fields, each data property loses mapped_field and condition_operations, each logic property loses data_source, parameters and analysis_dimensions, and a relation type loses mapping_rules. Action types, metrics and risk types come back in full at either level, as do the concept groups, which on this path carry object_type_ids and statistics rather than nested concept copies. summary is for progressively loading a large knowledge network: enough to see its shape and plan a query, without the field-level detail. Fetch that per concept from object-types/{ot_ids} and relation-types/{rt_ids}. |
{- "id": "kn_system_incident_event_network",
- "name": "DIP system fault event network",
- "tags": [
- "event",
- "fault"
], - "comment": "DIP system fault event network",
- "icon": "",
- "color": "",
- "branch": "main",
- "creator": "a0f02238-6cec-11f0-82bb-fa1c4529a151",
- "create_time": 1757583140948,
- "updater": "a0f02238-6cec-11f0-82bb-fa1c4529a151",
- "update_time": 1757583140948,
- "detail": "Markdown text"
}| kn_id required | string Business knowledge network ID |
| branch | string Branch. Uses main when omitted. |
| strict_mode | boolean Default: true Whether to strictly validate dependencies. Defaults to true. When true, validates dependencies for nested object types, relation types, action types, and concept groups in the request. When false, skips validation. |
| import_mode | string Default: "normal" Enum: "normal" "overwrite" "ignore" Import mode. normal reports an error for duplicate concept names; overwrite replaces them; ignore skips them. Defaults to normal. |
| name required | string Business knowledge network name |
| tags | Array of strings Tags used for business identification |
| comment | string Metric model comment |
| icon | string Icon |
| color | string Color |
| branch required | string Branch ID |
{- "name": "string",
- "tags": [
- "string"
], - "comment": "string",
- "icon": "string",
- "color": "string",
- "branch": "string"
}Deletes a business knowledge network and all of its object types, relation types, action types, and concept groups.
| kn_id required | string Business knowledge network ID |
| branch | string Default: "main" Branch. Defaults to main. |
Internal Trace-only capability. The caller supplies a signed Ed25519 ProjectionReadGrant in X-BKN-Projection-Grant; it is not a user bearer token. BKN verifies issuer, audience, key ID, expiry, signature and that the exact path kn_id is in the grant. It never resolves user identity, tenant, business domain, a list, or a reverse lookup. A missing, invalid, expired, or non-matching grant returns 404.
| kn_id required | string The single knowledge network explicitly authorized by the grant. |
| X-BKN-Projection-Grant required | string Signed ProjectionReadGrant. Do not send an Authorization bearer token. |
{- "id": "string",
- "name": "string",
- "tags": [
- "string"
], - "comment": "string",
- "icon": "string",
- "color": "string",
- "branch": "string",
- "skill_content": "string",
- "creator": {
- "id": "a0f02238-6cec-11f0-82bb-fa1c4529a151",
- "type": "user",
- "name": "Administrator"
}, - "create_time": 0,
- "updater": {
- "id": "a0f02238-6cec-11f0-82bb-fa1c4529a151",
- "type": "user",
- "name": "Administrator"
}, - "update_time": 0,
- "statistics": {
- "object_types_total": 0,
- "relation_types_total": 0,
- "action_types_total": 0,
- "concept_groups_total": 0,
- "risk_types_total": 0,
- "metrics_total": 0,
- "skills_total": 0,
- "functions_total": 0,
- "apis_total": 0,
- "mcp_tools_total": 0
}, - "concept_groups": [
- {
- "id": "string",
- "name": "string",
- "tags": [
- "string"
], - "comment": "string",
- "icon": "string",
- "color": "string",
- "kn_id": "string",
- "branch": "string",
- "creator": {
- "id": "a0f02238-6cec-11f0-82bb-fa1c4529a151",
- "type": "user",
- "name": "Administrator"
}, - "create_time": 0,
- "updater": {
- "id": "a0f02238-6cec-11f0-82bb-fa1c4529a151",
- "type": "user",
- "name": "Administrator"
}, - "update_time": 0
}
], - "object_types": [
- {
- "id": "string",
- "name": "string",
- "tags": [
- "string"
], - "comment": "string",
- "icon": "string",
- "color": "string",
- "branch": "string",
- "kn_id": "string",
- "concept_groups": [
- {
- "id": "string",
- "name": "string"
}
], - "data_source": {
- "type": "resource",
- "id": "string",
- "name": "string"
}, - "data_properties": [
- {
- "name": "string",
- "display_name": "string",
- "type": "string",
- "comment": "string",
- "mapped_field": "string",
- "index": true,
- "fulltext_config": {
- "analyzer": "string",
- "field_keyword": true
}, - "vector_config": {
- "dimension": 0
}
}
], - "logic_properties": [
- {
- "name": "string",
- "display_name": "string",
- "type": "string",
- "comment": "string",
- "index": true,
- "data_source": {
- "type": "resource",
- "id": "string",
- "name": "string"
}, - "parameters": [
- {
- "name": "string",
- "value_from": "property",
- "value": "string"
}
]
}
], - "primary_keys": [
- "string"
], - "display_key": "string",
- "creator": {
- "id": "a0f02238-6cec-11f0-82bb-fa1c4529a151",
- "type": "user",
- "name": "Administrator"
}, - "create_time": 0,
- "updater": {
- "id": "a0f02238-6cec-11f0-82bb-fa1c4529a151",
- "type": "user",
- "name": "Administrator"
}, - "update_time": 0
}
], - "relation_types": [
- {
- "id": "string",
- "name": "string",
- "tags": [
- "string"
], - "comment": "string",
- "icon": "string",
- "color": "string",
- "branch": "string",
- "kn_id": "string",
- "concept_groups": [
- {
- "id": "string",
- "name": "string"
}
], - "source_object_type_id": "string",
- "source_object_type_name": "string",
- "target_object_type_id": "string",
- "target_object_type_name": "string",
- "type": "direct",
- "mapping_rules": { },
- "creator": {
- "id": "a0f02238-6cec-11f0-82bb-fa1c4529a151",
- "type": "user",
- "name": "Administrator"
}, - "create_time": 0,
- "updater": {
- "id": "a0f02238-6cec-11f0-82bb-fa1c4529a151",
- "type": "user",
- "name": "Administrator"
}, - "update_time": 0
}
], - "action_types": [
- {
- "id": "string",
- "name": "string",
- "tags": [
- "string"
], - "comment": "string",
- "icon": "string",
- "color": "string",
- "branch": "string",
- "kn_id": "string",
- "concept_groups": [
- {
- "id": "string",
- "name": "string"
}
], - "action_type": "add",
- "action_intent": "add",
- "object_type_id": "string",
- "object_type_name": "string",
- "condition": {
- "object_type_id": "string",
- "field": "string",
- "operation": "and",
- "sub_conditions": [
- { }
], - "value": null,
- "value_from": "const"
}, - "affect": {
- "object_type": "string",
- "comment": "string",
- "expected_operation": "add",
- "affected_fields": [
- "string"
]
}, - "impact_contracts": [
- {
- "object_type_id": "string",
- "expected_operation": "add",
- "description": "string",
- "affected_fields": [
- "string"
]
}
], - "action_source": {
- "type": "resource",
- "id": "string",
- "name": "string"
}, - "parameters": [
- {
- "name": "string",
- "value_from": "property",
- "value": "string"
}
], - "schedule": {
- "type": "FIX_RATE",
- "expression": "string"
}
}
], - "module_type": "string",
- "operations": [
- "string"
]
}Returns a lightweight, authorization-filtered graph projection for large knowledge networks. Counts are calculated after authorization. The initial page and cursor pages are bounded; focus_object_type_id expands one node by one or two hops. A cursor is rejected when the network snapshot has changed. Returned edges never reference a node omitted by authorization.
| kn_id required | string Business knowledge network ID |
| branch | string Default: "main" |
| node_limit | integer [ 1 .. 200 ] Default: 60 Maximum returned nodes. Defaults to 60; maximum 200. |
| edge_limit | integer [ 1 .. 500 ] Default: 120 Maximum candidate relations read for this response. Defaults to 120; maximum 500. |
| cursor | string Opaque cursor from next_cursor. Cannot be combined with focus or concept-group expansion. |
| focus_object_type_id | string Object type whose bounded neighbourhood should be returned. |
| expand_depth | integer Default: 1 Enum: 1 2 Focus expansion depth. Supported values are 1 and 2; defaults to 1. |
| concept_group_id | string Return a bounded projection of one concept group. Mutually exclusive with focus_object_type_id. |
{- "nodes": [
- {
- "id": "string",
- "name": "string",
- "icon": "string",
- "color": "string",
- "indexed": true,
- "degree": 0
}
], - "edges": [
- {
- "id": "string",
- "name": "string",
- "source_id": "string",
- "target_id": "string",
- "mapping_mode": "direct"
}
], - "object_type_total": 0,
- "relation_type_total": 0,
- "returned_nodes": 0,
- "returned_edges": 0,
- "truncated": true,
- "snapshot": "string",
- "next_cursor": "string"
}Validates only knowledge network dependency existence and does not persist data. It validates all dependencies including object types, relation types, action types, and concept groups. The server builds one BatchIDIndex from the four top-level request buckets and nested concept_groups buckets, allowing references to types present only in nested groups.
Response: HTTP 200 uses valid and detail for ordinary model validation. Nested strict dependency failures return the documented 400/403/502/503 error envelope, whose error_details includes a safe dependency_kind.
Internal API: the corresponding internal path uses the same request and response contract, resolves the caller from headers, and does not use OAuth.
| kn_id required | string Business knowledge network ID |
| branch | string Branch. Uses main when omitted. |
| strict_mode | boolean Default: true Whether to strictly validate dependencies. Defaults to true. |
| import_mode | string Default: "normal" Enum: "normal" "ignore" "overwrite" Matches creation semantics. When neither import_mode nor mode is provided, uses normal. It validates persisted ID and name conflicts with normal, ignore, and overwrite semantics. |
| object_types | Array of arrays |
| relation_types | Array of arrays |
| action_types | Array of arrays |
| concept_groups | Array of arrays |
{- "object_types": [ ],
- "relation_types": [ ],
- "action_types": [ ],
- "concept_groups": [ ]
}{- "valid": true,
- "detail": "string"
}