Updates a workflow's Directed Acyclic Graph (DAG), including node coordinates and edges.
Try it now
Test
RAM authorization
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
The cluster ID. |
xxljob-a1804a3226d |
| AppName |
string |
Yes |
The application name. |
test-app |
| WorkflowId |
integer |
Yes |
The workflow ID. |
1 |
| Dag |
object |
Yes |
The directed acyclic graph (DAG) of the workflow. |
|
| Nodes |
array<object> |
No |
A list of nodes in the workflow. |
|
|
array<object> |
No |
The details of a node. |
||
| Id |
integer |
No |
The job ID. |
1 |
| Coordinate |
object |
No |
The coordinates of the node. |
|
| X |
number |
No |
The x-coordinate. |
50 |
| Y |
number |
No |
The y-coordinate. |
50 |
| Width |
number |
No |
Optional. The width of the node. |
100 |
| Height |
number |
No |
Optional. The height of the node. |
20 |
| Content |
string |
No |
The logical expression of the node. |
{ "logicType": "status_branch", "conditionResult": { "successList": [ { "jobName": "status-job4", "jobId": "269" } ], "failedList": [ { "jobName": "status-job5", "jobId": "270" } ] }, "dependence": { "relation": "AND", "dependList": [ { "relation": "AND", "dependItemList": [ { "jobName": "status-job1", "jobId": 265, "status": [ 4 ] }, { "jobName": "status-job2", "jobId": 266, "status": [ 5 ] } ] }, { "relation": "AND", "dependItemList": [ { "jobName": "status-job3", "jobId": 267, "status": [ 4 ] } ] } ] } } |
| Edges |
array<object> |
No |
A list of edges in the workflow. |
|
|
object |
No |
The details of an edge. The direction of the edge is from a Source to a Target. |
||
| Source |
integer |
No |
The job ID of the source node. |
3 |
| Target |
integer |
No |
The job ID of the target node. |
4 |
| DagVersion |
string |
No |
The version of the DAG. To obtain this value, call the ListDAGVersions operation. |
1137005 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The schema of the response. |
||
| Code |
integer |
The response code. |
200 |
| Message |
string |
The error message. |
Parameter error: content is null. |
| RequestId |
string |
The unique ID of the request. This ID is generated by Alibaba Cloud for troubleshooting purposes. |
AA3538A0-FBE6-5E31-AD88-A02C6FF0DACC |
| Success |
boolean |
Indicates whether the request was successful.
|
true |
Examples
Success response
JSON format
{
"Code": 200,
"Message": "Parameter error: content is null.",
"RequestId": "AA3538A0-FBE6-5E31-AD88-A02C6FF0DACC",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | Parameter error: %s. | Parameter error: %s |
| 401 | IllegalRequest | IllegalRequest: %s. | Illegal request:%s |
| 500 | InternalError | InternalError: %s. | System Internal Error: %s |
| 403 | NoPermission | No permission to perform this operation: %s. | No permission to perform this operation: %s |
| 404 | NotFound | Not found: %s. | The resource does not exist: %s |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.