Download OpenAPI specification:
Vega Backend asynchronous semantic-understanding task API. New tasks can target one Resource. Catalog task creation and execution are temporarily unavailable; existing Catalog tasks remain readable and deletable. The worker submits Resource tasks to bkn-agent and writes back results and application status asynchronously.
| scope | string Enum: "resource" "catalog" |
| catalog_id | string |
| resource_id | string |
| status | Array of strings Items Enum: "pending" "running" "completed" "failed" "cancelled" Filter by status. Repeat the parameter for multiple statuses, which are combined with OR. |
| apply_mode | string Enum: "dry_run" "fill_empty" "force" Application mode. |
| applied | boolean Whether the result has been applied. |
| offset | integer >= 0 Default: 0 |
| limit | integer Default: 20 |
| sort | string Default: "create_time" Enum: "create_time" "start_time" "finish_time" Sort field. Tasks with |
| direction | string Default: "desc" Enum: "asc" "desc" |
{- "entries": [
- {
- "id": "string",
- "scope": "resource",
- "catalog_id": "string",
- "catalog_name": "string",
- "resource_id": "string",
- "resource_name": "string",
- "agent_task_id": "string",
- "agent_id": "string",
- "status": "pending",
- "apply_mode": "dry_run",
- "confidence_threshold": 0.1,
- "confidence": 0.1,
- "applied": true,
- "creator": {
- "id": "string",
- "type": "string",
- "name": "string"
}, - "create_time": 0,
- "start_time": 0,
- "finish_time": 0
}
], - "total_count": 0
}| scope required | string Value: "resource" Value: "resource" |
| resource_id required | string |
| apply_mode | string Default: "fill_empty" Enum: "dry_run" "fill_empty" "force" |
| confidence_threshold | number <double> Default: 0.75 |
| include_sample_rows | boolean Whether to read and send raw sample rows. Supported only for Resource semantic-understanding tasks. If sampling is unavailable, the task is still created and continues with no sample rows. |
object (SamplePolicy) |
{- "scope": "resource",
- "resource_id": "string",
- "apply_mode": "dry_run",
- "confidence_threshold": 0.75,
- "include_sample_rows": true,
- "sample_policy": {
- "masked": false,
- "max_rows": 1
}
}{- "id": "string",
- "scope": "resource",
- "catalog_id": "string",
- "catalog_name": "string",
- "resource_id": "string",
- "resource_name": "string",
- "agent_task_id": "string",
- "agent_id": "string",
- "input": "string",
- "input_hash": "string",
- "status": "pending",
- "apply_mode": "dry_run",
- "result_json": "string",
- "confidence_threshold": 0.1,
- "confidence": 0.1,
- "confidence_detail_json": "string",
- "apply_detail_json": "string",
- "applied": true,
- "failure_detail": "string",
- "creator": {
- "id": "string",
- "type": "string",
- "name": "string"
}, - "create_time": 0,
- "start_time": 0,
- "finish_time": 0
}Requires task_manage on the task's Catalog. The input field is returned as an empty string when the caller lacks query_data on the task's Resource, or when the task has no resource_id. Authorization service failures return an error rather than exposing the input. Empty input does not require a query_data check.
| id required | string |
{- "id": "string",
- "scope": "resource",
- "catalog_id": "string",
- "catalog_name": "string",
- "resource_id": "string",
- "resource_name": "string",
- "agent_task_id": "string",
- "agent_id": "string",
- "input": "string",
- "input_hash": "string",
- "status": "pending",
- "apply_mode": "dry_run",
- "result_json": "string",
- "confidence_threshold": 0.1,
- "confidence": 0.1,
- "confidence_detail_json": "string",
- "apply_detail_json": "string",
- "applied": true,
- "failure_detail": "string",
- "creator": {
- "id": "string",
- "type": "string",
- "name": "string"
}, - "create_time": 0,
- "start_time": 0,
- "finish_time": 0
}The path parameter may contain comma-separated task IDs. Running tasks cannot be deleted.
| id required | string |
| ignore_missing | boolean Default: false |
{- "error_code": "string",
- "description": "string",
- "solution": "string",
- "error_link": "string",
- "error_details": null,
- "metadata": { }
}