---
title: "Schedule a maintenance window"
method: POST
path: "/status-pages/{status_page_id}/maintenances"
tags: ["Status Page"]
---

# Schedule a maintenance window

`POST /status-pages/{status_page_id}/maintenances`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/status-pages/{status_page_id}/maintenances`
- Auth: HTTP bearer

While it runs, the covered monitors show "Under maintenance", their
checks are left out of uptime and no outage incident or alert is raised
for them. It is announced once, now, through the page's feed and
subscriptions. It cannot start in the past.

## Path parameters

- `status_page_id` integer, required

## Request body

- CreateMaintenanceRequest
  - `description` string, nullable: Public description, at most 2000 characters.
  - `ends_at` string, date-time, required: After `starts_at`, at most 7 days later.
  - `monitor_ids` integer[], required: Monitors on this page the window covers; at least one.
  - `starts_at` string, date-time, required: No earlier than a few minutes ago: a window cannot be backdated.
  - `title` string, required: Public title, at most 120 characters.

## Response `201`

Maintenance window scheduled

- MaintenanceResponse
  - `cancelled_at` string, date-time, nullable
  - `created_at` string, date-time, required
  - `description` string, nullable
  - `ends_at` string, date-time, required
  - `id` integer, required
  - `monitor_ids` integer[], required: The page's monitors the window covers.
  - `starts_at` string, date-time, required
  - `state` 'scheduled' | 'in_progress' | 'completed' | 'cancelled', required: Where a window is in its life.
  - `status_page_id` integer, required
  - `title` string, required: Shown on the public page and in announcements.
  - `updated_at` string, date-time, required

## Other responses

- `400`: Invalid window
- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Status page not found
- `409`: The page has too many open windows
- `500`: Internal server error

## Changes

- **2026-11-21** `d57a37c13a27`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/status-pages/:status_page_id/maintenances/post.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
