---
title: "Update alert"
method: PATCH
path: "/v1/alert/{alert_id}"
tags: ["Alerts"]
---

# Update alert

`PATCH /v1/alert/{alert_id}`

## Path parameters

- `alert_id` string, required — ID of an alert

## Request body

- object
  - `resolved` boolean — Whether the alert has been resolved

## Response `200`

OK

- Alert — Alert object that represents an alert that has been triggered due to some condition.
  - `agent_id` string — ID of an agent
  - `alert_fields` string, required — Unstructured fields specific to the alert type
  - `alert_id` string, required — ID of an alert
  - `alert_type` 'device_not_checking_in' | 'device_out_of_date' | 'device_storage_not_healthy' | 'device_storage_space_low' | 'device_storage_space_critical' | 'agent_not_checking_in' | 'agent_not_backing_up' | 'agent_backup_failed' | 'agent_duplicate_connection', required — Type of the alert
  - `created_at` string, date-time, required — Creation timestamp
  - `device_id` string — ID of a device
  - `resolved` boolean, required — Whether the alert has been resolved
  - `resolved_at` string, date-time — Timestamp at which an alert was resolved
  - `resolved_by` string — Name of the person who resolved the alert, or "auto" if resolved automatically

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `404` — Not found
- `500` — Internal server error

---

[API](https://skmtc.net/slide/apis/slide-api.md) · [All operations](https://skmtc.net/slide/apis/slide-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/slide/slide-api/revisions/c63e4b604dd1/schema)
