Updates the constants for a specified task flow.
Debugging
Request parameters
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| Action | String | Yes | UpdateTaskFlowConstants |
The operation that you want to perform. Set the value to UpdateTaskFlowConstants. |
| Tid | Long | No | 3*** |
The ID of the tenant. You can call the GetUserActiveTenant or ListUserTenants operation to query the tenant ID. |
| DagId | Long | Yes | 3**** |
The ID of the task flow. You can call the ListTaskFlow or ListLhTaskFlowAndScenario operation to query the task flow ID. |
| DagConstants | Array | Yes |
The constants for the task flow. |
|
| Key | String | No | poc_test |
The key name of a constant for the task flow. |
| Value | String | No | poc_test |
The key value of a constant for the task flow. |
Response parameters
| Parameter | Type | Example | Description |
|---|---|---|---|
| RequestId | String | C4CCC000-C193-5A32-B701-573F497BF729 |
The ID of the request. 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:
|
Examples
Sample requests
http(s)://dms-enterprise.aliyuncs.com/?Action=UpdateTaskFlowConstants
&Tid=3***
&DagId=3****
&Common request parametersSample success responses
XML format
HTTP/1.1 200 OK
Content-Type:application/xml
<UpdateTaskFlowConstantsResponse>
<RequestId>C4CCC000-C193-5A32-B701-573F497BF729</RequestId>
<ErrorCode>UnknownError</ErrorCode>
<ErrorMessage>UnknownError</ErrorMessage>
<Success>true</Success>
</UpdateTaskFlowConstantsResponse>JSON format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "C4CCC000-C193-5A32-B701-573F497BF729",
"ErrorCode" : "UnknownError",
"ErrorMessage" : "UnknownError",
"Success" : true
}Error codes
For a list of error codes, visit the API Error Center.