---
title: "Update alert destination"
method: PUT
path: "/api/v1/sdk/alerts/destinations/{destination_id}"
tags: ["public-api", "public-alerts"]
---

# Update alert destination

`PUT /api/v1/sdk/alerts/destinations/{destination_id}`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/api/v1/sdk/alerts/destinations/{destination_id}`
- Auth: none declared

Update an alert destination.

**SDK Usage:**
```python
from anomalyarmor import Client

client = Client()
dest = client.alerts.update_destination(
    "dest-uuid",
    name="Updated Name",
    is_active=False,
)
```

## Path parameters

- `destination_id` string, required

## Headers

- `Authorization` string

## Request body

- AppSharedApiV1PublicAlertsUpdateDestinationRequest: Request to update an alert destination.
  - `name` string, nullable: New name
  - `config` object, nullable: Updated config
  - `is_active` boolean, nullable: Active status

## Response `200`

Successful Response

- StandardResponse: Standard API response wrapper.
  - `success` boolean, required
  - `data` unknown
  - `message` string, nullable
  - `error` string, nullable
  - `meta` object, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api.md) · [All operations](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api/llms.txt) · [OpenAPI document](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api/revisions/51c755fb5d0b?raw)
