---
title: "Create Maintenance Window"
method: POST
path: "/v1/maintenance-windows"
tags: ["Maintenance Windows"]
---

# Create Maintenance Window

`POST /v1/maintenance-windows`

## Request

- Base URL: `https://api.fettle.sh` (the document declares no server; this is the origin it was published from)
- URL: `https://api.fettle.sh/v1/maintenance-windows`
- Auth: API key in header `Authorization`

Create a maintenance window for the active organization.

## Headers

- `X-Organization-Id` string, uuid, nullable

## Request body

- MaintenanceWindowCreate: Create payload for a maintenance window.
  - `name` string, required
  - `enabled` boolean
  - `scope` 'MONITOR' | 'ORG', required: What a window targets. ``ORG`` covers every monitor in the org; ``MONITOR`` covers the explicitly linked monitors only.
  - `dtstart` string, date-time, required
  - `duration_minutes` integer, required
  - `rrule` string, nullable
  - `timezone` string, nullable
  - `monitor_ids` string[]

## Response `201`

Successful Response

- MaintenanceWindowRead: Response model for a maintenance window.
  - `id` string, uuid, required
  - `name` string, required
  - `enabled` boolean, required
  - `scope` 'MONITOR' | 'ORG', required: What a window targets. ``ORG`` covers every monitor in the org; ``MONITOR`` covers the explicitly linked monitors only.
  - `dtstart` string, date-time, required
  - `duration_minutes` integer, required
  - `rrule` string, nullable, required
  - `timezone` string, required
  - `monitor_ids` string[]
  - `created_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/fettle/apis/fettle-sh.md) · [All operations](https://skmtc.dev/fettle/apis/fettle-sh/llms.txt) · [OpenAPI document](https://skmtc.dev/fettle/apis/fettle-sh/revisions/f32c8a18606f?raw)
