Updates the time variables for a task flow.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Tid | long | No | 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.
| 3*** |
DagId | long | Yes | The ID of the task node. You can call the GetTaskInstanceRelation operation to query the node ID. | 43**** |
TimeVariables | string | Yes | The time variables for the task flow. | {"variables":[ {"name":"var", "pattern":"yyyy-MM-dd|+0m+0h-2d+0w+0M+1y"} ]} |
The value of TimeVariables must be a JSON string. Example:
"name":"var",// The name of the variable.
The format of the variable.
As shown in the example, the date can have one or more offsets, including minutes (m), hours (h), days (d), weeks (w), months (M), or years (y). The offsets are optional, and you can specify the offsets in a different order than described here.
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "39557312-28D5-528F-9554-80C0700EB489",
"ErrorCode": "UnknownError",
"ErrorMessage": "UnknownError",
"Success": true
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history