Delete a Metric Alert Rule
DELETE /api/0/organizations/{organization_id_or_slug}/alert-rules/{alert_rule_id}/
Delete a specific metric alert rule.
A metric alert rule is a configuration that defines the conditions for triggering an alert. It specifies the metric type, function, time interval, and threshold values that determine when an alert should be triggered. Metric alert rules are used to monitor and notify you when certain metrics, like error count, latency, or failure rate, cross a predefined threshold. These rules help you proactively identify and address issues in your project.
Path Parameters
organization_id_or_slug
(string)REQUIREDThe id or slug of the organization the resource belongs to.
alert_rule_id
(integer)REQUIREDThe ID of the rule you'd like to query.
Scopes
You need to authenticate via bearer auth token.
<auth_token>
requires one of the following scopes:alert_rule:write
alerts:write
org:admin
org:write
curl https://sentry.io/api/0/organizations/{organization_id_or_slug}/alert-rules/{alert_rule_id}/ \ -H 'Authorization: Bearer <auth_token>' \ -X DELETE
RESPONSE
Accepted.