Creates or modifies an alert contact.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ContactId | long | No | The ID of the alert contact.
| 123 |
ContactName | string | Yes | The name of the alert contact. | JohnDoe |
Phone | string | No | The mobile number of the alert contact. Note
You must specify at least one of the Phone and Email parameters. Each mobile number or email address can be used for only one alert contact.
| 1381111**** |
string | No | The email address of the alert contact. Note
You must specify at least one of the Phone and Email parameters. Each mobile number or email address can be used for only one alert contact.
| someone@example.com | |
ReissueSendNotice | long | No | The operation that you want to perform if phone calls fail to be answered. Valid values:
| 3 |
IsEmailVerify | boolean | No | Specifies whether the email address is verified. | true |
DingRobotUrl | string | No | The webhook URL of the DingTalk chatbot. | https://oapi.dingtalk.com/robot/send?access_token=69d4e0****** |
ResourceGroupId | string | No | The resource group ID. | rg-acfmxyexli2**** |
CorpUserId | string | No | The ID of the alert contact that is shown to the enterprise when the contact is mentioned with the at sign (@) by a third-party instant messaging (IM) tool. | A123221 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "E9C9DA3D-10FE-472E-9EEF-2D0A3E41****",
"AlertContact": {
"ContactId": 123,
"ContactName": "JohnDoe",
"Phone": "1381111****",
"Email": "someone@example.com",
"IsVerify": false,
"ReissueSendNotice": 3,
"isEmailVerify": true,
"DingRobotUrl": "https://test1.com"
}
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-05-09 | The request parameters of the API has changed | View Change Details |
2024-05-09 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
2022-06-24 | The request parameters of the API has changed. The response structure of the API has changed | View Change Details |