---
title: "POST /UpdateAnomalyDetector"
method: POST
path: "/UpdateAnomalyDetector"
---

# POST /UpdateAnomalyDetector

`POST /UpdateAnomalyDetector`

Updates a detector. After activation, you can only change a detector's ingestion delay and description.

## Request body

- object
  - `AnomalyDetectorArn` string, required — The ARN of the detector to update.
  - `KmsKeyArn` string — The Amazon Resource Name (ARN) of an AWS KMS encryption key.
  - `AnomalyDetectorDescription` string — The updated detector description.
  - `AnomalyDetectorConfig` object — Contains information about a detector's configuration.
    - `AnomalyDetectorFrequency` 'P1D' | 'PT1H' | 'PT10M' | 'PT5M' — The frequency at which the detector analyzes its source data.

## Response `200`

Success

- UpdateAnomalyDetectorResponse
  - `AnomalyDetectorArn` string — The ARN of the updated detector.

## Other responses

- `480` — ResourceNotFoundException
- `481` — ValidationException
- `482` — InternalServerException
- `483` — AccessDeniedException
- `484` — TooManyRequestsException

---

[API](https://skmtc.net/aws/apis/lookoutmetrics.md) · [All operations](https://skmtc.net/aws/apis/lookoutmetrics/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/lookoutmetrics/versions/aace1e573660/schema)
