---
search:
  tags:
    - Health
    - PATCH
seo:
  description: >-
    Forward-only: open -> acknowledged -> resolved, or open -> resolved
    directly. A… Reference for the PATCH /alerts/{alert_id} endpoint in the
    Sarvex V1 API.
sidebar:
  label: Acknowledge or resolve an alert
  badge: PATCH
title: Acknowledge or resolve an alert
type: openapi-operation
---
Forward-only: open -> acknowledged -> resolved, or open -> resolved directly.
A backward or no-op transition (e.g. re-resolving an already-resolved alert)
returns 409.

`PATCH /alerts/{alert_id}`

**Request body** (`application/json`, required)

- `status` (string, required)

Request body example:

```json
{
  "status": "acknowledged"
}
```

**Responses**

- `200` — Updated alert.
- `404` — Resource not found within the caller's tenant.
- `409` — The alert is not in a state that allows this transition.

Response example, 200:

```json
{
  "alert_id": "alt_01J8Z3...",
  "store_id": "string",
  "check_type": "signature_roundtrip",
  "severity": "healthy",
  "status": "open",
  "detail": "string",
  "opened_at": "2019-08-24T14:15:22Z",
  "acknowledged_at": "2019-08-24T14:15:22Z",
  "acknowledged_by": "string",
  "resolved_at": "2019-08-24T14:15:22Z",
  "auto_resolved": true
}
```

Response example, 404:

```json
{
  "error": {
    "code": "not_found",
    "message": "Resource not found.",
    "details": null
  }
}
```
