Migrates a task flow to a specified business scenario.

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 MoveTaskFlowToScenario

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

Tid Long No 3***

The ID of the tenant.

Note You can call the GetUserActiveTenant operation to obtain the tenant ID.
DagId Long Yes The ID of the task flow. You can call the ListTaskFlow or ListLhTaskFlowAndScenario operation to obtain the task flow ID.

The ID of the task flow.

ScenarioId Long No 1****

The ID of the business scenario to which the task flow is migrated. If the parameter value is set to the default value, or is less than or equal to 0, the task flow is migrated to the default business scenario.

Response parameters

Parameter Type Example Description
RequestId String D85FD18C-4322-5D49-8C14-5A10E668F86C

The ID of the request. You can use the ID to query logs and troubleshoot issues.

ErrorCode String UnknownError

The error code returned if the request failed.

ErrorMessage String UnknownError

The error message returned if the request failed.

Success Boolean true

Indicates whether the request was successful. Valid values:

  • true: The request was successful.
  • false: The request failed.

Examples

Sample requests

http(s)://dms-enterprise.aliyuncs.com/?Action=MoveTaskFlowToScenario
&DagId=11****
&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<MoveTaskFlowToScenarioResponse>
    <RequestId>D85FD18C-4322-5D49-8C14-5A10E668F86C</RequestId>
    <Success>true</Success>
</MoveTaskFlowToScenarioResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "D85FD18C-4322-5D49-8C14-5A10E668F86C",
  "Success" : true
}

Error codes

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