You can call the CloneFlow operation to clone a workflow.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. You can use OpenAPI Explorer to search for API operations, call API operations, and dynamically generate SDK sample code.

Request parameters

Parameter Type Required Example Description
Action String Yes CloneFlow

The operation that you want to perform. This parameter is required for API requests that you create by piecing together HTTP or HTTPS URLs. Set the value to CloneFlow.

Id String Yes F-8C1EB0C6452****

The ID of the workflow to be cloned. You can call ListFlowInstance View the workflow ID.

ProjectId String Yes FP-53C4D36FC731****

The ID of the project to which the workflow to be cloned belongs. You can call ListFlowProject View the ID of the project.

RegionId String Yes cn-hangzhou

The region ID. You can call DescribeRegions To view the latest list of Alibaba Cloud regions.

Response parameters

Parameter Type Example Description
Id String F-CDFE2BF3A796****

The ID of the created workflow.

RequestId String 12E7685E-C7A2-4BED-878B-07AF5BAD475F

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=CloneFlow
&Id=F-8C1EB0C6452A****
&ProjectId=FP-53C4D36FC731****
&RegionId=cn-hangzhou
&<common request parameters>

Sample success responses

XML format

<RequestId>12E7685E-C7A2-4BED-878B-07AF5BAD475F</RequestId>
<Id>F-CDFE2BF3A796****</Id>

JSON Syntax

{
    "RequestId": "12E7685E-C7A2-4BED-878B-07AF5BAD475F",
    "Id": "F-CDFE2BF3A796****"
}