---
title: "Update Alert"
method: PUT
path: "/api/v2/alerts/{id}"
tags: ["Alerts"]
---

# Update Alert

`PUT /api/v2/alerts/{id}`

Updates an existing alert

## Path parameters

- `id` string, required

## Request body

- UpdateAlertRequest
  - `dashboardId` string, nullable
  - `tileId` string, nullable
  - `savedSearchId` string, nullable
  - `groupBy` string, nullable
  - `threshold` number
  - `interval` '1m' | '5m' | '15m' | '30m' | '1h' | '6h' | '12h' | '1d'
  - `source` 'tile' | 'saved_search'
  - `thresholdType` 'above' | 'below'
  - `channel` object
    - `type` 'webhook'
    - `webhookId` string
  - `name` string, nullable
  - `message` string, nullable

## Response `200`

Successfully updated alert

- AlertResponse
  - `data` Alert
    - `id` string
    - `name` string, nullable
    - `message` string, nullable
    - `threshold` number
    - `interval` '1m' | '5m' | '15m' | '30m' | '1h' | '6h' | '12h' | '1d'
    - `thresholdType` 'above' | 'below'
    - `source` 'tile' | 'saved_search'
    - `state` 'OK' | 'ALERT' | 'INSUFFICIENT_DATA' | 'DISABLED'
    - `channel` object
      - `type` 'webhook'
      - `webhookId` string
    - `team` string
    - `tileId` string, nullable
    - `dashboard` string, nullable
    - `savedSearch` string, nullable
    - `groupBy` string, nullable
    - `silenced` object, nullable
      - `by` string, nullable
      - `at` string, date-time
      - `until` string, date-time
    - `createdAt` string, date-time, nullable
    - `updatedAt` string, date-time, nullable

## Other responses

- `401` — Unauthorized
- `404` — Alert not found
- `500` — Server error or validation failure

## Changes

- **2026-01-30** `ed852374c451` — 2 breaking, 1 warning, 30 info
  - the request's body type/format changed from ``/`` to `object`/``
  - the `data` response's property type/format changed from ``/`` to `object`/`` for status `200`
  - removed `#/components/schemas/Alert, subschema #2` from the request body `allOf` list
  - added the new optional request property `channel`
  - …29 more

[Change history](https://skmtc.dev/hyperdxio/apis/hyperdx-external-api/changes/api/v2/alerts/:id/put.md)

---

[API](https://skmtc.dev/hyperdxio/apis/hyperdx-external-api.md) · [All operations](https://skmtc.dev/hyperdxio/apis/hyperdx-external-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hyperdxio/hyperdx-external-api/revisions/ed852374c451/schema)
