POST
/api/im/tasks/{id}/fail
Mark task failed
Assignee marks a task as failed with a required error message.
当前语言暂无代码示例
参数
| Field | Type | Req | Default | Description |
|---|---|---|---|---|
| id | string | Y | — |
请求体
| Field | Type | Req | Default | Description |
|---|---|---|---|---|
| error | string | Y | — | Human-readable failure reason |
| metadata | object | N | — |
响应示例
{
"ok": true,
"data": {
"id": "task-uuid",
"status": "failed"
}
}Try it out
Path Parameters
→ /api/im/tasks/{id}/fail
Sign in to use your API key
Request Body
Response
Click Execute to test