Updates the notification settings for task flows.
Debugging
Request parameters
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| Action | String | Yes | UpdateTaskFlowNotification |
The operation that you want to perform. Set the value to UpdateTaskFlowNotification. |
| 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 unique ID of the task flow. You can call the ListTaskFlow or ListLhTaskFlowAndScenario operation to query the task flow ID. |
| DagNotificationFail | Boolean | Yes | true |
Specifies whether to enable notifications for failed task flows. Notifications are disabled by default. You can enable notifications based on your business requirements. |
| DagNotificationSuccess | Boolean | Yes | true |
Specifies whether to enable notifications for successful task flows. Notifications are disabled by default. You can enable notifications based on your business requirements. |
| DagNotificationSla | Boolean | Yes | true |
Specifies whether to enable SLA global notifications for task flows. Notifications are disabled by default. You can enable notifications based on your business requirements. |
Response parameters
| Parameter | Type | Example | Description |
|---|---|---|---|
| RequestId | String | 3BDC762F-2525-5E47-8748-D6C58BDB3B38 |
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=UpdateTaskFlowNotification
&DagNotificationFail=true
&DagNotificationSuccess=true
&DagNotificationSla=true
&Common request parameters
Sample success responses
XML format
HTTP/1.1 200 OK
Content-Type:application/xml
<UpdateTaskFlowNotificationResponse>
<RequestId>3BDC762F-2525-5E47-8748-D6C58BDB3B38</RequestId>
<Success>true</Success>
</UpdateTaskFlowNotificationResponse>
JSON format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "3BDC762F-2525-5E47-8748-D6C58BDB3B38",
"Success" : true
}
Error codes
For a list of error codes, visit the API Error Center.