---
title: "PATCH /tracer/alerts/{kind}/{alert_id}/"
method: PATCH
path: "/tracer/alerts/{kind}/{alert_id}/"
tags: ["tracer"]
---

# PATCH /tracer/alerts/{kind}/{alert_id}/

`PATCH /tracer/alerts/{kind}/{alert_id}/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/tracer/alerts/{kind}/{alert_id}/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

## Request body

- AlertWriteRequest
  - `kind` 'metric' | 'error_feed'
  - `name` string
  - `enabled` boolean
  - `project_id` string, uuid, nullable
  - `trigger_type` string
  - `severity_threshold` 'low' | 'medium' | 'high' | 'critical'
  - `occurrence_threshold` integer
  - `filters` object
  - `slack_connection_id` string, uuid
  - `slack_channel_id` string
  - `cooldown_seconds` integer
  - `project` string, uuid, nullable
  - `metric_type` string
  - `metric` string, nullable
  - `threshold_type` string
  - `threshold_operator` string
  - `threshold_metric_value` string, nullable
  - `critical_threshold_value` number
  - `warning_threshold_value` number
  - `alert_frequency` integer
  - `auto_threshold_time_window` integer
  - `slack_webhook_url` string, uri, nullable
  - `slack_notes` string, nullable
  - `is_mute` boolean
  - `notification_emails` string[]

## Response `200`

OK

- AlertItemResponse
  - `status` boolean, required
  - `result` AlertItem, required
    - `id` string, uuid, required
    - `kind` 'metric' | 'error_feed', required
    - `name` string, required
    - `enabled` boolean, required
    - `project_id` string, uuid, nullable
    - `trigger_type` string
    - `severity_threshold` 'low' | 'medium' | 'high' | 'critical'
    - `occurrence_threshold` integer
    - `filters` object
    - `slack_connection_id` string, uuid
    - `slack_channel_id` string
    - `slack_channel_name` string
    - `cooldown_seconds` integer
    - `last_triggered_at` string, date-time, nullable
    - `health` string
    - `failure_reason` string, nullable
    - `created_at` string, date-time
    - `updated_at` string, date-time
    - `project` string, uuid
    - `organization` string, uuid
    - `workspace` string, uuid, nullable
    - `created_by` string, uuid, nullable
    - `metric_type` string
    - `metric` string, nullable
    - `metric_name` string
    - `threshold_type` string
    - `threshold_operator` string
    - `threshold_metric_value` string, nullable
    - `critical_threshold_value` number, nullable
    - `warning_threshold_value` number, nullable
    - `alert_frequency` integer
    - `auto_threshold_time_window` integer
    - `last_checked_at` string, date-time, nullable
    - `slack_webhook_url` string, uri, nullable
    - `slack_notes` string, nullable
    - `is_mute` boolean
    - `deleted` boolean
    - `deleted_at` string, date-time, nullable
    - `logs` object[], nullable
    - `notification_emails` string[]

## Other responses

- `default`: Default error response

---

[API](https://skmtc.dev/futureagi/apis/future-agi-management-api.md) · [All operations](https://skmtc.dev/futureagi/apis/future-agi-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futureagi/apis/future-agi-management-api/revisions/c8684118e142?raw)
