Skip to main content
post/workflows/tasks/{task_id}/stop
Request example
Response
post/workflows/tasks/{task_id}/stop

Authorization

Authorizationstringheaderrequired#

每个请求都通过 API Key 认证:Authorization: Bearer {API_KEY}。应用接口使用应用 API Key,知识库接口使用知识库 API Key(快速开始)。

API Key 应保存在服务端,切勿嵌入客户端代码。缺失或无效的 Key 会返回 HTTP 401(unauthorized)。

Path parameters

task_idstringrequired#
任务 ID,来自 执行工作流 的流式事件。

Body

application/json
userstringrequired#
终端用户标识,由你的应用定义,需在应用内唯一。无需与发起该运行的 user 一致;停止对该任务始终生效。参见 终端用户身份。

Responses

application/json
操作成功。
resultstring#
操作结果,固定为 success。