---
title: "Create Alert Blackout"
method: POST
path: "/api/v1/alert-blackouts/"
tags: ["alert-blackouts"]
---

# Create Alert Blackout

`POST /api/v1/alert-blackouts/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/api/v1/alert-blackouts/`
- Auth: none declared

Create a new blackout window.

## Headers

- `Authorization` string

## Request body

- CreateBlackoutRequest: Request schema for creating a blackout window.
  - `name` string, required
  - `start_time` string, required: ISO 8601 datetime string
  - `end_time` string, required: ISO 8601 datetime string
  - `recurrence` string: 'none' or 'yearly'
  - `is_active` boolean

## Response `201`

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)
