Updates an alert handling rule.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Id | long | No | The ID of the alert handling rule. | 814163 |
Scenarios | string | No | The application scope of the rule. The value is in the JSON format. Valid values:
| {\"type\": \"repo\", \"value\": \"test-aaa/shenzhen-repo-01\"} |
Response parameters
Examples
Sample success responses
JSON
format
{
"Data": {
"Id": 67429
},
"Success": true,
"Code": "200",
"Message": "successful",
"RequestId": "7532B7EE-7CE7-5F4D-BF04-B12447DD****"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
500 | ServerError | ServerError | - |
For a list of error codes, visit the Service error codes.