Clones a workflow.
Operation description
This API operation will be deprecated soon. To copy a workflow, call the GetFlow operation to obtain the workflow information and then call the CreateFlow operation to create the workflow.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| FlowId | string | Yes | The ID of the workflow that you want to clone. | lc-uf6yrfwxpe6wkw |
| VersionId | string | No | The version of the workflow that you want to clone. If you do not specify this parameter, the latest version of the workflow is to be cloned. | ve-uf6bwdtvid7o25 |
Response parameters
Examples
Sample success responses
JSONformat
{
"FlowId": "lc-uf6wvbsyvvl5sy",
"RequestId": "ADB97A33-50E7-48A5-963D-ACBAE36D0BEC"
}Error codes
| HTTP status code | Error code | Error message | Description |
|---|---|---|---|
| 404 | InvalidFlow.NotFound | The specified workflow does not exist. Verify the availability of the workflow. | The specified workflow does not exist. Make sure the workflow is available. |
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| 2022-11-21 | API Description Update. The API operation is deprecated. The Error code has changed | see changesets | ||||||||
|
