Updates the start and end nodes of specified edges of a specified task flow at a time.

Usage notes

The edges can be updated only when the following conditions are met:

1. The specified edge exists in the Directed Acyclic Graph (DAG) of the task flow. The DAG is identified by DagId.

2. The end points of the specified edge exist in the DAG of the task flow. The DAG is identified by DagId.

3. After the update, no loop appears in the DAG.

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 UpdateTaskFlowEdges

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

Tid Long No 3***

The ID of the tenant.

Note To view the ID of the tenant, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see View information about the current tenant.
DagId Long Yes 15***

The ID of the task flow. You can call the ListTaskFlow or ListLhTaskFlowAndScenario operation to query the task flow ID.

Edges Array Yes

The list of updated task flow edges.

Id Long Yes 24***

The ID of the task flow edge.

NodeEnd Long Yes 44***

The ID of the end node on the edge.

NodeFrom Long Yes 44***

The ID of the start node on the edge.

Response parameters

Parameter Type Example Description
RequestId String 93FC1AE1-EC54-52B1-B146-650180FB82E8

You can use the ID to locate 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=UpdateTaskFlowEdges
&Edges=[{NodeEnd=44***,NodeFrom=44***}]
&Common request parameters

Sample success responses

XML format

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

<UpdateTaskFlowEdgesResponse>
    <RequestId>93FC1AE1-EC54-52B1-B146-650180FB82E8</RequestId>
    <Success>true</Success>
</UpdateTaskFlowEdgesResponse>

JSON format

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

{
  "RequestId" : "93FC1AE1-EC54-52B1-B146-650180FB82E8",
  "Success" : true
}

Error codes

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