Alerting & Response/Alert Rules
PUTAlertingSince 1.0SynchronousAuth Required
UpdateAlertInhibitionRule
Update an existing inhibition rule configuration
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Path Parameters
Request Inputs
Path Parameters
ruleIdStringRequiredInhibition rule identifier to update
Body Fields
nameStringRequiredNew rule name
Example: Updated inhibition rule
descriptionStringRequiredNew rule description
Example: Updated description
sourceMatchStringRequiredNew source matcher expression
Example: alertname=HostDown
targetMatchStringRequiredNew target matcher expression
Example: alertname=DiskFull
equalLabelsStringRequiredNew equal labels
Example: host
Responses
Endpoint
PUT/api/v1/alerting/inhibition-rules/{ruleId}
/api/v1/alerting/inhibition-rules/{ruleId}
Request Example
curl -X PUT '{host}/api/v1/alerting/inhibition-rules/{ruleId}' -H 'Authorization: Bearer {token}' -H 'Content-Type: application/json' -d '{"name":"Updated inhibition rule","description":"Updated description","sourceMatch":"alertname=HostDown","targetMatch":"alertname=DiskFull","equalLabels":"host","enabled":true}'
Response Example
200{
"uuid": "inhib-001",
"name": "Suppress disk alerts when host down",
"description": "Suppress disk alerts when host is unreachable",
"sourceMatch": "alertname=HostDown",
"targetMatch": "alertname=DiskFull",
"equalLabels": "host,cluster",
"enabled": true,
"createDate": "example"
}Change History
This API has no change history records yet.
