POST
/
api
/
workflows
/
{workflowName}
/
runs
/
{runId}
/
cancel
停止运行中的执行
curl --request POST \
  --url https://wfapi.yuhe.space/api/workflows/{workflowName}/runs/{runId}/cancel \
  --header 'Authorization: Bearer <token>'
{
  "errCode": 123,
  "errMessage": "<string>",
  "data": {
    "runId": "<string>",
    "workflowName": "<string>",
    "cancelled": true,
    "message": "<string>"
  }
}

Authorizations

Authorization
string
header
required

使用 WORKFLOW_SERVER_ADMIN_KEY 或已创建的账号 API Key。

Path Parameters

workflowName
string
required
runId
string
required

Response

取消请求结果。

errCode
integer
required
errMessage
string
required
Allowed value: ""
data
object
required