Download OpenAPI specification:
Action types use action_type:{kn_id}/{action_type_id}. Reads and lists
require view_detail; updates and deletes use modify and delete.
execute first evaluates the concrete Action Type rule; when no direct
rule exists it falls back to execute on the owning knowledge network.
A direct child allow or deny takes precedence, and a deny wins when both
effects exist on the same resource. 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 Tool Box and MCP binding validation uses controlled execution-factory existence lookups. A missing or unpublished binding returns 400. Permission/configuration failures, downstream 5xx responses, and invalid responses return 502; timeout or unavailable failures return 503. Raw dependency response bodies are not included in public errors.
| 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. |
| action_type | string Enum: "add" "modify" "delete" Query filter: filter by action category enum using the same value domain as action_type and action_intent in the response. |
| object_type_id | string Bound object type |
| branch | string Default: "main" Branch. Defaults to main. |
{- "entries": [
- {
- "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",
- "condition": {
- "operation": "and",
- "sub_conditions": [
- null
]
}, - "affect": {
- "comment": "string",
- "object_type_id": "string",
- "expected_operation": "add",
- "affected_fields": [
- "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",
- "operations": [
- "string"
], - "object_type": {
- "id": "string",
- "name": "string",
- "branch": "string",
- "icon": "string",
- "color": "string"
}
}
], - "total_count": 0
}| kn_id required | string Business knowledge network ID |
| import_mode | string Enum: "normal" "ignore" "overwrite" Import mode. Supported values are normal, ignore, and overwrite. Defaults to normal. |
| confirm_clear_declarations | boolean Default: false With overwrite, a file that does not carry the aliases or lifecycle of an existing action type (BKN spec 3.0),
such as a 2.x package or an old JSON export, would clear them. Without this parameter the request is
refused with 409 BknBackend.ActionType.DeclarationsWouldBeCleared, whose details list the cleared
declarations ( |
| strict_mode | boolean Default: true Whether to strictly validate dependencies. Defaults to true. When true, validates dependencies such as bound and affected object types. When false, missing dependencies do not cause an error. |
| branch | string Default: "main" Branch. Defaults to main. |
| x-http-method-override required | string Enum: "POST" "GET" Request override header |
required | Array of objects (ReqActionType) Action type information |
[- {
- "id": "restart_pod",
- "name": "restart pod",
- "tags": [
- "topology"
], - "comment": "Restart the pod when its status is unknown or failed",
- "icon": "",
- "color": "",
- "branch": "main",
- "action_type": "modify",
- "action_intent": "modify",
- "object_type_id": "pod",
- "condition": {
- "object_type_id": "pod",
- "field": "pod_status",
- "operation": "in",
- "value_from": "const",
- "value": [
- "Unknown",
- "Failed"
]
}, - "impact_contracts": [
- {
- "object_type_id": "pod",
- "expected_operation": "modify",
- "description": "Restart the pod",
- "affected_fields": [ ]
}
], - "action_source": {
- "type": "tool",
- "box_id": "tool_123",
- "tool_id": "box_123"
}, - "parameters": [
- {
- "name": "pod",
- "value_from": "property",
- "value": "pod_name"
}, - {
- "name": "namespace",
- "value_from": "property",
- "value": "pod_namespace"
}, - {
- "name": "cmd_type",
- "value_from": "input",
- "value": ""
}
], - "schedule": {
- "type": "",
- "expression": ""
}, - "module_type": "action_type"
}
]{- "entries": [
- {
- "id": "restart_pod",
- "name": "restart pod",
- "tags": [
- "topology"
], - "comment": "Restart the pod when its status is unknown or failed",
- "icon": "",
- "color": "",
- "branch": "main",
- "detail": "",
- "creator": "a0f02238-6cec-11f0-82bb-fa1c4529a151",
- "create_time": 1757657606651,
- "updater": "a0f02238-6cec-11f0-82bb-fa1c4529a151",
- "update_time": 1758098535626,
- "kn_id": "kn_system_incident_event_network",
- "action_type": "modify",
- "action_intent": "modify",
- "object_type_id": "pod",
- "impact_contracts": [
- {
- "object_type_id": "pod",
- "expected_operation": "modify",
- "description": "Restart the pod",
- "affected_fields": [ ]
}
], - "object_type": {
- "id": "",
- "name": "",
- "branch": "",
- "icon": "",
- "color": ""
}, - "condition": {
- "object_type_id": "pod",
- "field": "pod_status",
- "operation": "in",
- "value_from": "const",
- "value": [
- "Unknown",
- "Failed"
]
}, - "action_source": {
- "type": "tool",
- "box_id": "tool_123",
- "tool_id": "box_123"
}, - "parameters": [
- {
- "name": "pod",
- "value_from": "property",
- "value": "pod_name"
}, - {
- "name": "namespace",
- "value_from": "property",
- "value": "pod_namespace"
}, - {
- "name": "cmd_type",
- "value_from": "input",
- "value": ""
}
], - "schedule": {
- "type": "",
- "expression": ""
}, - "IfNameModify": false,
- "module_type": "action_type"
}
], - "total_count": 2,
- "next_cursor": "cursor-action-types-1"
}| kn_id required | string Business knowledge network ID |
| at_id required | string Action type ID |
| branch | string Branch. Uses main when omitted. |
| strict_mode | boolean Default: true Whether to strictly validate dependencies. Defaults to true. When true, validates bound and affected object types and other dependencies. When false, skips validation. |
| name required | string <= 128 characters Action type name |
| aliases | Array of strings Other names of the action type (BKN spec 3.0); not its own name or another action type's name. An update that leaves the field out keeps the stored aliases; null or [] clears them. |
object Whether the action type is still in use (BKN spec 3.0, §4.3); not the index status. Without it the action type is active. status deprecated needs a reason; replaced_by names an active action type. An update that leaves the field out keeps the stored lifecycle; null or {} clears it. | |
| tags | Array of strings Tags. May be empty. |
| comment | string Comment. May be empty. |
| icon | string Icon |
| color | string Color |
| branch required | string Branch ID |
| action_type required | string Deprecated Enum: "add" "modify" "delete" Deprecated. Prefer action_intent; dual writes must agree. |
| action_intent | string Enum: "add" "modify" "delete" Recommended field stored in f_action_intent. |
| object_type_id required | string <= 128 characters ^[a-z0-9][a-z0-9_-]{0,127}$ Object type ID bound to the action type |
action_condition_and (object) or action_condition_or (object) or action_condition_eq (object) or action_condition_not_eq (object) or action_condition_gt (object) or action_condition_gte (object) or action_condition_lt (object) or action_condition_lte (object) or action_condition_in (object) or action_condition_not_in (object) or action_condition_range (object) or action_condition_out_range (object) or action_condition_exist (object) or action_condition_not_exist (object) (ActionCondition) | |
object Deprecated Deprecated. Use impact_contracts. | |
Array of objects (ImpactContractItem) Stored in f_impact_contracts as JSON. | |
ToolSource (object) or MCPSource (object) Resource bound to the action | |
Array of objects (Parameter) Action resource parameters | |
object (Schedule) Execution frequency configuration |
{- "name": "string",
- "aliases": [
- "string"
], - "lifecycle": {
- "status": "active",
- "reason": "string",
- "replaced_by": "string"
}, - "tags": [
- "string"
], - "comment": "string",
- "icon": "string",
- "color": "string",
- "branch": "string",
- "action_type": "add",
- "action_intent": "add",
- "object_type_id": "string",
- "condition": {
- "operation": "and",
- "sub_conditions": [
- null
]
}, - "affect": {
- "comment": "string",
- "object_type_id": "string",
- "expected_operation": "add",
- "affected_fields": [
- "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"
}
}{- "error_code": "string",
- "description": "string",
- "error_details": null,
- "metadata": { }
}| kn_id required | string Business knowledge network ID |
| at_ids required | Array of strings Action type ID |
| branch | string Default: "main" Branch. Defaults to main. |
{- "entries": [
- {
- "id": "string",
- "name": "string",
- "aliases": [
- "string"
], - "lifecycle": {
- "status": "active",
- "reason": "string",
- "replaced_by": "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": {
- "operation": "and",
- "sub_conditions": [
- null
]
}, - "affect": {
- "comment": "string",
- "object_type_id": "string",
- "expected_operation": "add",
- "affected_fields": [
- "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"
}
]
}| kn_id required | string Business knowledge network ID |
| at_ids required | Array of strings Action type ID |
| branch | string Default: "main" Branch. Defaults to main. |
{- "error_code": "string",
- "description": "string",
- "error_details": null,
- "metadata": { }
}Validates only action type dependency existence and does not persist data. It validates dependencies such as bound and affected object types.
Response: HTTP 200 uses valid and detail for ordinary model validation. 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 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 action type creation and validates conflicts with persisted action type IDs or names using normal, ignore, or overwrite. |
| confirm_clear_declarations | boolean Default: false With overwrite, a file that does not carry the aliases or lifecycle of an existing action type (BKN spec 3.0),
such as a 2.x package or an old JSON export, would clear them. Without this parameter the request is
refused with 409 BknBackend.ActionType.DeclarationsWouldBeCleared, whose details list the cleared
declarations ( |
| entries | Array of objects Action types to validate. Uses the same structure as the creation API. |
{- "entries": [
- { }
]
}{- "valid": true,
- "detail": "string"
}