Modifies the information about a contact for webhook alerts.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes UpdateWebhook

The operation that you want to perform. Set the value to UpdateWebhook.

ContactId Long Yes 48716

The ID of the contact for webhook alerts.

RegionId String Yes cn-hangzhou

The ID of the region.

ContactName String No Webhook alert

The name of the contact.

Method String No Post

The method of the HTTP request. Valid values:

  • Get
  • Post
Url String No******

The URL of the request method.

HttpParams String No [{"name":"mike"}]

The parameters in the HTTP request.

HttpHeaders String No [{"Content-Type":"application/json"}]

The header of the HTTP request.

Body String No {"msg_type": "text","content": {"text": "$content"}}

The body of the HTTP request. This parameter is required if the Method parameter is set to Post. You can use the $content placeholder in the request body to export the alert information.

Response parameters

Parameter Type Example Description
IsSuccess Boolean true

The result of the request. Valid values:

  • true: The request was successful.
  • false: The request failed.
RequestId String 16AF921B-8187-489F-9913-43C808B4****

The ID of the request.


Sample requests

&<Common request parameters>|

Sample success responses

XML format


JSON format

    "IsSuccess": true,
    "RequestId": "16AF921B-8187-489F-9913-43C808B4****"