Updates a subscription.
This API has been deprecated. We recommend migrating to dataworks-public(2024-05-18) - UpdateDataQualityAlertRule for enhanced functionality and continued support. While the deprecated API remains temporarily accessible, no further updates or bug fixes will be provided.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectName |
string |
Yes |
The name of the compute engine or data source. |
autotest |
| FollowerId |
integer |
Yes |
The ID of the subscription. |
1234 |
| Follower |
string |
Yes |
The subscriber. |
1912232**** |
| AlarmMode |
integer |
Yes |
The notification method. Valid values: 1 (email), 2 (email and SMS), 4 (DingTalk group chatbot), 5 (DingTalk group chatbot with an @all reminder), 6 (Lark), 7 (WeCom), 8 (webhook), and 9 (phone call). |
2 |
| ProjectId |
integer |
No |
The ID of the DataWorks workspace. You can log on to the DataWorks console to obtain the ID. |
123 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The data returned. |
||
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| Data |
boolean |
Indicates whether the update was successful. |
true |
| ErrorMessage |
string |
The error message. |
You have no permission |
| RequestId |
string |
The request ID. |
576b9457-2cf5-4**** |
| ErrorCode |
string |
The error code. |
401 |
| Success |
boolean |
Indicates whether the request was successful. |
true |
Examples
Success response
JSON format
{
"HttpStatusCode": 200,
"Data": true,
"ErrorMessage": "You have no permission",
"RequestId": "576b9457-2cf5-4****",
"ErrorCode": "401",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.