Download OpenAPI specification:
Risk Type management. A risk type is a lightweight concept with only a name, tags, comment, and display metadata (icon and color). It is not bound to action types or thresholds. All APIs are exposed under /api/bkn-backend/v1, require OAuth2 authentication, and default the branch query parameter to main.
This endpoint uses the x-http-method-override header to select an operation:
Requires an application/json content type.
| kn_id required | string Business knowledge network ID |
| branch | string Default: "main" Branch name. Defaults to main. |
| import_mode | string Default: "normal" Enum: "normal" "ignore" "overwrite" Applies only to creation. normal reports existing items; ignore skips them; overwrite replaces them by ID. |
| x-http-method-override | string Enum: "POST" "GET" Method override. Empty or POST creates in batch; GET searches. |
required | Array of objects (RiskTypeInput) non-empty |
{- "entries": [
- {
- "id": "string",
- "name": "string",
- "tags": [
- "string"
], - "comment": "string",
- "icon": "string",
- "color": "string"
}
]
}{- "entries": [
- {
- "id": "string",
- "name": "string",
- "tags": [
- "string"
], - "comment": "string",
- "icon": "string",
- "color": "string",
- "kn_id": "string",
- "branch": "string",
- "module_type": "string",
- "creator": {
- "id": "string",
- "type": "string",
- "name": "string"
}, - "create_time": 0,
- "updater": {
- "id": "string",
- "type": "string",
- "name": "string"
}, - "update_time": 0
}
], - "total_count": 0,
- "next_cursor": "string",
- "overall_ms": 0
}Lists risk types in a knowledge network with pagination and optional name or tag filtering.
| kn_id required | string Business knowledge network ID |
| branch | string Default: "main" Branch name. Defaults to main. |
| name_pattern | string Fuzzy match by name or ID. Defaults to empty. |
| tag | string Fuzzy match by tag. Defaults to empty. |
| offset | integer <int64> Default: 0 Offset, greater than or equal to 0. Defaults to 0. |
| limit | integer <int64> Default: 10 Page size in the range [1, 1000]. A value of -1 returns all items without pagination. |
| sort | string Default: "update_time" Enum: "name" "update_time" Sort field |
| direction | string Default: "desc" Enum: "asc" "desc" Sort direction |
{- "entries": [
- {
- "id": "string",
- "name": "string",
- "tags": [
- "string"
], - "comment": "string",
- "icon": "string",
- "color": "string",
- "kn_id": "string",
- "branch": "string",
- "module_type": "string",
- "creator": {
- "id": "string",
- "type": "string",
- "name": "string"
}, - "create_time": 0,
- "updater": {
- "id": "string",
- "type": "string",
- "name": "string"
}, - "update_time": 0
}
], - "total_count": 0
}Fully updates one risk type. Requires application/json content type.
| kn_id required | string Business knowledge network ID |
| rt_id required | string Risk type ID |
| branch | string Default: "main" Branch name. Defaults to main. |
| id | string Optional. Generated automatically when empty during creation. |
| name required | string |
| tags | Array of strings |
| comment | string |
| icon | string |
| color | string |
{- "id": "string",
- "name": "string",
- "tags": [
- "string"
], - "comment": "string",
- "icon": "string",
- "color": "string"
}{- "error_code": "string",
- "description": "string",
- "solution": "string",
- "error_link": "string",
- "error_details": null
}Gets the specified risk types by ID in batch. If any ID is missing, the entire request returns 404.
| kn_id required | string Business knowledge network ID |
| rt_ids required | string Comma-separated risk type ID list |
| branch | string Default: "main" Branch name. Defaults to main. |
{- "entries": [
- {
- "id": "string",
- "name": "string",
- "tags": [
- "string"
], - "comment": "string",
- "icon": "string",
- "color": "string",
- "kn_id": "string",
- "branch": "string",
- "module_type": "string",
- "creator": {
- "id": "string",
- "type": "string",
- "name": "string"
}, - "create_time": 0,
- "updater": {
- "id": "string",
- "type": "string",
- "name": "string"
}, - "update_time": 0
}
]
}Deletes one or more risk types by ID list.
| kn_id required | string Business knowledge network ID |
| rt_ids required | string Comma-separated risk type ID list |
| branch | string Default: "main" Branch name. Defaults to main. |
{- "error_code": "string",
- "description": "string",
- "solution": "string",
- "error_link": "string",
- "error_details": null
}