Cancels a running workflow.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request syntax

PUT /gs/workflow/workflowName HTTP/1.1
Content-Type:application/json

{
  "action" : "String"
}

Request parameters

Table 1. Request path parameters
Parameter Type Required Example Description
workflowName String Yes mapping-gpu-mhhgh

The name of the workflow that you want to cancel.

Table 2. Request body parameters
Parameter Type Required Example Description
action String Yes cancel

The operation that you want to perform. Valid value: cancel.

Response syntax

HTTP/1.1 200 OK

Response parameters

None

Examples

PUT /gs/workflow/mapping-gpu-mhhgh HTTP/1.1
Host:cs.aliyuncs.com
Content-Type:application/json

{
  "action" : "cancel"
}

Sample success responses

JSON format

HTTP/1.1 200 OK

Error codes

For a list of error codes, visit the API Error Center.