---
title: "Updates an alert (snooze or resolve)."
method: PUT
path: "/alerts/{id}"
tags: ["Alerts"]
---

# Updates an alert (snooze or resolve).

`PUT /alerts/{id}`

## Request

- Base URL: `https://api.reveldigital.com`
- URL: `https://api.reveldigital.com/alerts/{id}`
- Auth: one of:
  - OAuth 2
    - Authorization code: `https://id.reveldigital.com/connect/authorize`
    - Token URL: `https://id.reveldigital.com/connect/token` scopes: `webapi`
  - API key in header `X-RevelDigital-ApiKey`
  - API key in query parameter `api_key`
- TypeScript: <https://skmtc.dev/reveldigital/apis/revel-digital-rest-api/docs/alerts/:id/put.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `id` string, required

## Request body

- AlertRequest: Alert model used for updating alerts
  - `snoozed_until` string, date-time, nullable: Set to snooze the alert until a specific date/time
  - `resolved_on` string, date-time, nullable: Set to resolve the alert

## Response `200`

OK

- Alert: Alert model
  - `id` string, nullable: The alert id (encrypted)
  - `created_on` string, date-time: The date and time the alert was created
  - `updated_on` string, date-time, nullable: The date and time the alert was last updated
  - `snoozed_until` string, date-time, nullable: The date and time until which the alert is snoozed
  - `resolved_on` string, date-time, nullable: The date and time the alert was resolved
  - `alert_rule` AlertRuleSummary: Alert rule summary (minimal info included with alerts)
    - `id` string, nullable: The alert rule id (encrypted)
    - `name` string, nullable: The name of the alert rule
    - `rule_set` string, nullable: The rule set configuration (JSON)
    - `is_enabled` boolean, nullable: Indicates if the alert rule is enabled
  - `devices` AlertDevice[], nullable: The devices affected by this alert
    - `id` string, nullable: The device id (encrypted)
    - `name` string, nullable: The device name
  - `is_active` boolean: Indicates if the alert is currently active (not resolved and not snoozed)

## Other responses

- `404`: Not Found

---

[API](https://skmtc.dev/reveldigital/apis/revel-digital-rest-api.md) - [All operations](https://skmtc.dev/reveldigital/apis/revel-digital-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/reveldigital/apis/revel-digital-rest-api/revisions/39d5c8302822?raw)
