---
title: "Resolve an alert"
method: POST
path: "/api/v1/sdk/alerts/{alert_id}/resolve"
tags: ["public-api", "public-alerts"]
---

# Resolve an alert

`POST /api/v1/sdk/alerts/{alert_id}/resolve`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/api/v1/sdk/alerts/{alert_id}/resolve`
- Auth: none declared

Resolve an alert - mark as fixed.

Accepts optional resolution metadata: action_category, root_cause_category,
pr_url, and other fields from ResolutionFields.

**SDK Usage:**
```python
from anomalyarmor import Client
client = Client()
result = client.alerts.resolve(
    "alert-uuid",
    notes="Fixed the pipeline",
    action_category="updated_sql",
    root_cause_category="pipeline_failure",
    pr_url="https://github.com/org/repo/pull/123",
)
```

## Path parameters

- `alert_id` string, required

## Headers

- `Authorization` string

## Request body

- ResolveAlertRequest: Request to resolve an alert with optional resolution metadata.
  - `action_category` string, nullable
  - `action_detail` string, nullable
  - `root_cause_category` string, nullable
  - `root_cause_detail` string, nullable
  - `pr_url` string, nullable
  - `job_run_id` string, nullable
  - `external_link` string, nullable
  - `suggestion_pattern_id` string, uuid, nullable
  - `suggestion_was_helpful` boolean, nullable
  - `notes` string, nullable: Optional resolution notes

## Response `200`

Successful Response

- StandardResponse: Standard API response wrapper.
  - `success` boolean, required
  - `data` unknown
  - `message` string, nullable
  - `error` string, nullable
  - `meta` object, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api.md) · [All operations](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api/llms.txt) · [OpenAPI document](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api/revisions/51c755fb5d0b?raw)
