Updates an alert contact.
Operation description
、
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sysom:UpdateAlertDestination |
update |
*All Resource
|
None | None |
Request syntax
PUT /api/v1/alertPusher/alert/updateDestination HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The HTTP request body. |
|
| app_id |
string |
No |
||
| app_secret |
string |
No |
||
| group_id |
array |
No |
||
|
string |
No |
|||
| id |
string |
No |
The ID of the alert contact. |
1 |
| imbot |
boolean |
No |
||
| name |
string |
No |
The name of the alert contact. |
name1 |
| params |
object |
No |
The configuration parameters. |
|
|
string |
No |
The email address. |
xxx@email.com |
|
| phone |
string |
No |
The phone number. |
1xxx |
| sec |
string |
No |
The chatbot secret key. |
SECxxx |
| webhook |
string |
No |
The webhook URL. |
https://oapi.dingtalk.com/robot/send?access_token=xxx |
| source |
string |
No |
The configuration source. |
console |
| target |
string |
No |
The alert push target. Currently, only DingTalk contacts are supported. |
dingtalk |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| code |
string |
The status code.
|
SysomOpenAPI.InvalidParameter |
| data |
any |
The response result. |
{ "webhook":"", "sec":"" } |
| message |
string |
The error message.
|
Success |
| requestId |
string |
The request ID. |
2D693121-C925-5154-8DF6-C09A8B369822 |
Examples
Success response
JSON format
{
"code": "SysomOpenAPI.InvalidParameter",
"data": "{\n\"webhook\":\"\",\n\"sec\":\"\"\n}",
"message": "\nSuccess",
"requestId": "2D693121-C925-5154-8DF6-C09A8B369822\n"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Sysom.ServerError | Server error, please correct the code according to the error message. %s. | Server error, please correct the code according to the error message |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.