You can call this operation to clone a workflow.

Request parameters

Name Type Required Example Description
Id String Yes F-8C1EB0C6452A82A1 The ID of the workflow to clone.
ProjectId String Yes FP-53C4D36FC7310AC0 The ID of the project that the workflow belongs to.
RegionId String Yes cn-hangzhou The ID of the region.

Response parameters

Name Type Example Description
RequestId String 12E7685E-C7A2-4BED-878B-07AF5BAD475F The ID of the request.
Id String F-CDFE2BF3A7963F06 The ID of the workflow that has been created.

Examples

  • Sample requests
    /? Action=CloneFlow
    &Id=F-8C1EB0C6452A82A1
    &ProjectId=FP-53C4D36FC7310AC0
    &RegionId=cn-hangzhou
    &<Common request parameters>
  • Successful response examples
    JSON format
    {
    	"Id":"F-CDFE2BF3A7963F06",
    	"RequestId":"12E7685E-C7A2-4BED-878B-07AF5BAD475F"
    }
  • Error response examples
    JSON format
    {
    	"code":"FLOW_API_FAILED",
    	"message":"Flow name already exists: [0_copy]",
    	"requestId":"7DF74E3B-5BEA-4365-8E67-4FD95095924F",
    	"successResponse":false
    }

Error codes

View error codes.