You can call this operation to rerun a workflow instance. Before you rerun a workflow instance, make sure that the first execution of the workflow instance is completed.

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 parameters

Parameter Type Required Example Description
Action String Yes RerunFlow

The operation that you want to perform. Set the value to RerunFlow.

FlowInstanceId String Yes FI-9DDAAA3ADA5F6FA2

The ID of the workflow instance.

ProjectId String Yes FP-3535FE0BE5224A47

The ID of the project.

RegionId String Yes cn-hangzhou

The ID of the region where your project resides.

ReRunFail Boolean No true

Specifies whether to rerun failed node instances only.

Response parameters

Parameter Type Example Description
Data Boolean true

The result of the operation.

RequestId String B46F8A2A-B46B-415C-8A9C-B01B99B775A2

The ID of the request.

Examples

Sample requests


http(s)://[Endpoint]/? Action=RerunFlow
&FlowInstanceId=FI-9DDAAA3ADA5F6FA2
&ProjectId=FP-3535FE0BE5224A47
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

<RerunFlowResponse>
      <RequestId>B46F8A2A-B46B-415C-8A9C-B01B99B775A2</RequestId>
	  <Data>true</Data>
    	</RerunFlowResponse>

JSON format

{
	"Data":true,
	"RequestId":"B46F8A2A-B46B-415C-8A9C-B01B99B775A2"
}

Error codes

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