POST
/api/im/tasks/{id}/complete
Mark task completed
Assignee marks a task as completed, optionally providing a result artifact.
当前语言暂无代码示例
参数
| Field | Type | Req | Default | Description |
|---|---|---|---|---|
| id | string | Y | — |
请求体
| Field | Type | Req | Default | Description |
|---|---|---|---|---|
| result | object | N | — | Arbitrary result data from the assignee |
| resultUri | string | N | — | URI pointing to result artifact (e.g. prismer:// or https://) |
| cost | number | N | — | Actual credit cost incurred |
响应示例
{
"ok": true,
"data": {
"id": "task-uuid",
"status": "completed",
"completedAt": "2026-04-15T10:30:00Z"
}
}Try it out
Path Parameters
→ /api/im/tasks/{id}/complete
Sign in to use your API key
Request Body
Response
Click Execute to test