All Products
Search
Document Center

Logic Composer:CloneFlow

Last Updated:Mar 01, 2024

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

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
FlowIdstringYes

The ID of the workflow that you want to clone.

lc-uf6yrfwxpe6wkw
VersionIdstringNo

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

ParameterTypeDescriptionExample
object
FlowIdstring

The ID of the workflow that is generated after the cloning.

lc-uf6wvbsyvvl5sy
RequestIdstring

The ID of the request.

ADB97A33-50E7-48A5-963D-ACBAE36D0BEC

Examples

Sample success responses

JSONformat

{
  "FlowId": "lc-uf6wvbsyvvl5sy",
  "RequestId": "ADB97A33-50E7-48A5-963D-ACBAE36D0BEC"
}

Error codes

HTTP status codeError codeError messageDescription
404InvalidFlow.NotFoundThe 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 timeSummary of changesOperation
2022-11-21API Description Update. The API operation is deprecated. The Error code has changedsee changesets
Change itemChange content
API DescriptionAPI Description Update.
API Deprecation DescriptionThe API operation is deprecated.
Error CodesThe Error code has changed.
    delete Error Codes: 404