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

# Preview Maintenance Window

`POST /v1/maintenance-windows/preview`

## 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/preview`
- Auth: API key in header `Authorization`

Preview the next occurrences of a draft maintenance schedule.

## Headers

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

## Request body

- MaintenanceWindowPreviewRequest: Draft schedule for the preview endpoint (no persistence).
  - `dtstart` string, date-time, required
  - `duration_minutes` integer, required
  - `rrule` string, nullable
  - `timezone` string, nullable

## Response `200`

Successful Response

- OccurrenceRead[]
  - `start` string, date-time, required
  - `end` 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)
