Example Scenario
A data rule has flagged dozens of records — for example, a “Negative Temp Alert” firing on a winter’s worth of ambient-temperature readings. After reviewing them with your site engineer, you’ve confirmed they’re expected and want to dismiss them all at once with a single reason, while preserving the audit trail.
Dismissing an alert only changes how it is surfaced — it never edits the underlying datapoint or model run. If the record is recalculated and the rule still matches, a fresh alert can be raised. See Managing alerts for the full alert lifecycle.
How it works
Every rule alert is backed by a rule result with its own friendly ID:
The Bulk dismiss rule results endpoint takes a list of these IDs plus one
reason, and dismisses them in a single transaction. You can mix dpres_ and mrres_ IDs in the same request.
The call is all-or-nothing: if the reason is blank, the list is empty, or any ID is unknown to the project or points at a passing result, nothing is dismissed and the API returns 422. Already-dismissed results are a no-op, so retrying a request is safe.
Dismissing alerts with code
1
Prerequisites
Before starting, make sure you have:
- A Mangrove API token with Data Rules access for the project
- The rules engine feature enabled on your account (the endpoint returns
403otherwise) - The project ID containing the alerts
2
Collect the rule-result IDs to dismiss
List the results for the rule you want to triage and filter to the alerts (Each entry’s
status=fail), then read the id of each failing result.curl
id (e.g. dpres_8XF1QtGs79oX9A6k) is what you collect.3
Dismiss them in one call
Send all the IDs and a single reason to the bulk dismiss endpoint.The response returns every targeted result with its final state, so dismissed entries come back with
curl
status: dismissed and the dismissal_reason, dismissed_by, and dismissed_at fields populated.