Creates or modifies an alert group.

Debugging

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 PutContactGroup

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

ContactGroupName String Yes My alert group

The name of the alert group.

ContactNames.N RepeatList Yes Alice

The name of the alert contact. Valid values of N: 1 to 100.

Describe String No Alert group description

The description of the alert group.

Response parameters

Parameter Type Example Description
Code String 200

The HTTP status code.

Note The status code 200 indicates that the call was successful.
Message String success

The returned message.

RequestId String 06D5ECC2-B9BE-42A4-8FA3-1A610FB08B83

The ID of the request.

Success Boolean true

Indicates whether the call was successful. The value true indicates a success. The value false indicates a failure.

Examples

Sample requests

http(s)://[Endpoint]/? Action=PutContactGroup
&ContactGroupName=My alert group
&ContactNames.1=doctest
&Describe=Alert contact name
&<Common request parameters>

Sample success responses

XML format

<PutContactGroupResponse>
      <Code>200</Code>
      <Message>success</Message>
      <RequestId>181C406E-9DE4-484C-9C61-37AE9A1A12EE</RequestId>
      <Success>true</Success>
</PutContactGroupResponse>

JSON format

{
    "Code":"200",
    "Message":"success",
    "RequestId":"06D5ECC2-B9BE-42A4-8FA3-1A610FB08B83",
    "Success":true
}

Error codes

For a list of error codes, visit the API Error Center.