Download OpenAPI specification:
Concept groups use concept_group:{kn_id}/{group_id}. Reads and lists
require view_detail; updates use modify; deletion uses delete.
Lists are filtered before total and pagination. See
../knowledge-network-authorization.md.
Resource IDs use lowercase letters, digits, underscores, and hyphens, start with a letter or digit, and contain at most 128 characters. Resource names contain at most 128 Unicode characters.
Strict validation of nested object, relation, and action types preserves each child's public dependency error contract: invalid bindings remain 400, user-scoped authorization remains 403, controlled dependency failures are 502, and timeout/unavailable failures are 503.
| kn_id required | any |
| group_id required | any |
| branch | string Branch. Uses main when omitted. |
| include_statistics | boolean Default: false Whether to calculate and return statistics. Defaults to false. |
| mode | string Response view mode. Returns the default view when empty. |
{- "id": "string",
- "name": "string",
- "tags": [
- "string"
], - "comment": "string",
- "icon": "string",
- "color": "string",
- "kn_id": "string",
- "branch": "string",
- "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": {
- "name": "string",
- "display_name": "string",
- "type": "string"
}, - "condition_operations": [
- "string"
]
}
], - "logic_properties": [
- {
- "name": "string",
- "display_name": "string",
- "type": "string",
- "comment": "string",
- "data_source": {
- "type": "tool",
- "id": "string",
- "box_id": "string",
- "tool_id": "string",
- "result_path": "string",
- "name": "string"
}, - "parameters": [
- {
- "name": "string",
- "type": "string",
- "source": "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,
- "module_type": "object_type",
- "operations": [
- "string"
], - "incremental_key": "string",
- "status": {
- "incremental_key": "string",
- "incremental_value": "string",
- "index": "string",
- "doc_count": 0,
- "storage_size": 0,
- "update_time": 0
}
}
], - "relation_types": [
- {
- "id": "string",
- "name": "string",
- "tags": [
- "string"
], - "comment": "string",
- "icon": "string",
- "color": "string",
- "branch": "string",
- "kn_id": "string",
- "source_object_type_id": "string",
- "source_object_type": {
- "id": "string",
- "name": "string",
- "icon": "string",
- "color": "string",
- "branch": "string"
}, - "target_object_type_id": "string",
- "target_object_type": {
- "id": "string",
- "name": "string",
- "icon": "string",
- "color": "string",
- "branch": "string"
}, - "type": "direct",
- "mapping_rules": [
- {
- "target_property": {
- "name": "string",
- "display_name": "string"
}, - "source_property": {
- "name": "string",
- "display_name": "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,
- "module_type": "string",
- "operations": [
- "string"
]
}
], - "action_types": [
- {
- "id": "string",
- "name": "string",
- "tags": [
- "string"
], - "comment": "string",
- "icon": "string",
- "color": "string",
- "branch": "string",
- "kn_id": "string",
- "action_type": "add",
- "action_intent": "add",
- "object_type_id": "string",
- "object_type": {
- "id": "string",
- "name": "string",
- "icon": "string",
- "color": "string",
- "branch": "string"
}, - "condition": {
- "object_type_id": "string",
- "field": "string",
- "operation": "and",
- "sub_conditions": [
- { }
], - "value": null,
- "value_from": "const"
}, - "affect": {
- "comment": "string",
- "object_type_id": "string",
- "object_type": {
- "id": "string",
- "name": "string",
- "icon": "string",
- "color": "string",
- "branch": "string"
}
}, - "impact_contracts": [
- {
- "object_type_id": "string",
- "expected_operation": "add",
- "description": "string",
- "affected_fields": [
- "string"
]
}
], - "action_source": {
- "type": "tool",
- "box_id": "string",
- "tool_id": "string"
}, - "parameters": [
- {
- "name": "string",
- "type": "string",
- "source": "string",
- "value_from": "property",
- "value": "string"
}
], - "schedule": {
- "type": "FIX_RATE",
- "expression": "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,
- "module_type": "action_type"
}
], - "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,
- "module_type": "string",
- "operations": [
- "string"
]
}| kn_id required | any |
| group_id required | any |
| branch | string Branch. Uses main when omitted. |
| strict_mode | boolean Default: true Whether to strictly validate dependencies. Defaults to true. When true, validates object type references and other dependencies declared in the concept group. When false, skips this validation. |
| name required | string <= 128 characters Name |
| tags | Array of strings Tags used for business identification |
| comment | string Comment |
| icon | string Icon |
| color | string Color |
{- "name": "string",
- "tags": [
- "string"
], - "comment": "string",
- "icon": "string",
- "color": "string"
}{- "error_code": "string",
- "description": "string",
- "error_details": null,
- "metadata": { }
}| kn_id required | string Business knowledge network ID |
| name_pattern | string Fuzzy match by 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. |
| branch | string Default: "main" Branch. Defaults to main. |
{- "available_tags": [
- "string"
], - "entries": [
- {
- "id": "string",
- "name": "string",
- "tags": [
- "string"
], - "comment": "string",
- "icon": "string",
- "color": "string",
- "branch": "string",
- "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
}, - "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,
- "kn_id": "string",
- "object_type_ids": [
- "string"
], - "module_type": "string",
- "operations": [
- "string"
]
}
], - "total_count": 0
}Create a concept group
| kn_id required | string Business knowledge network ID |
| branch | string Branch. Uses main when omitted. |
| confirm_clear_declarations | boolean Default: false With overwrite, a file that does not carry the BKN spec 3.0 declarations of an existing object type (aliases and property declarations), such as a 2.x package or an old JSON export, would clear them. Without this parameter the request is refused with 409 BknBackend.ObjectType.DeclarationsWouldBeCleared, whose details list the declarations; pass true to clear them. |
| 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. |
| 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. |
| id | string <= 128 characters ^$|^[a-z0-9][a-z0-9_-]{0,127}$ ID. Immutable after creation. May contain lowercase letters, digits, underscores, and hyphens, and cannot start with an underscore or hyphen. |
| name required | string <= 128 characters 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": "string"
}Requires effective modify on concept_group:{kn_id}/{group_id}. strict_mode controls dependency validation only and never bypasses authorization.
| kn_id required | any |
| group_id required | any |
| branch | string Branch. Uses main when omitted. |
| strict_mode | boolean Default: true Whether to strictly validate dependencies. Defaults to true. When true, validates that object type IDs exist. When false, missing object types do not cause an error. |
required | Array of objects (AddObjectType) Object types to add |
{- "entries": [
- {
- "id": "string"
}
]
}Requires effective modify on concept_group:{kn_id}/{group_id}. The object types are relationship members, not independent authorization targets for this operation.
| kn_id required | any |
| group_id required | any |
| ot_ids required | any |
| branch | string Default: "main" Branch. Defaults to main. |
Validates only concept group dependency existence and does not persist data. It validates nested object types, relation types, action types, and their dependencies. Concept IDs in the same batch are collected from the requested concept_groups tree, including nested buckets, so strict mode can resolve references that have not yet been persisted.
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 has the same semantics, 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. |
| confirm_clear_declarations | boolean Default: false With overwrite, a file that does not carry the BKN spec 3.0 declarations of an existing object type (aliases and property declarations), such as a 2.x package or an old JSON export, would clear them. Without this parameter the request is refused with 409 BknBackend.ObjectType.DeclarationsWouldBeCleared, whose details list the declarations; pass true to clear them. |
| import_mode | string Default: "normal" Enum: "normal" "ignore" "overwrite" Matches the concept group creation API and validates conflicts with persisted concept group IDs or names using normal, ignore, or overwrite. |
| entries | Array of objects Concept groups to validate. Uses the same structure as the creation API. |
{- "entries": [
- { }
]
}{- "valid": true,
- "detail": "string"
}