Updates the time variables of a task.
Debugging
Request parameters
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| Action | String | Yes | UpdateTaskTimeVariables |
The operation that you want to perform. Set the value to UpdateTaskTimeVariables. |
| Tid | Long | No | 3*** |
The ID of the tenant. Note The ID of the tenant is displayed when you move the pointer over the profile picture
in the upper-right corner of the Data Management (DMS) console. For more information,
see the "View information about the current tenant" section of the Manage DMS tenants topic.
|
| NodeId | String | Yes | 43**** |
The ID of the node. You can call the GetTaskInstanceRelation operation to query the node ID. |
| TimeVariables | String | Yes | {"variables":[ {"name":"var", "pattern":"yyyy-MM-dd|+0m+0h-2d+0w+0M+1y"} ]} |
Time variables for the node. The value is a JSON string. |
Response parameters
| Parameter | Type | Example | Description |
|---|---|---|---|
| RequestId | String | 39557312-28D5-528F-9554-80C0700EB489 |
The ID of the request. |
| 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=UpdateTaskTimeVariables
&NodeId=43****
&TimeVariables={"variables":[ {"name":"var", "pattern":"yyyy-MM-dd|+0m+0h-2d+0w+0M+1y"} ]}
&Common request parameters
Sample responses
XML format
HTTP/1.1 200 OK
Content-Type:application/xml
<UpdateTaskTimeVariablesResponse>
<RequestId>39557312-28D5-528F-9554-80C0700EB489</RequestId>
<Success>true</Success>
</UpdateTaskTimeVariablesResponse>
JSON format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "39557312-28D5-528F-9554-80C0700EB489",
"Success" : true
}
Error codes
For a list of error codes, see Service error codes.