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

# Change a maintenance window

`PATCH /status-pages/{status_page_id}/maintenances/{maintenance_id}`

## 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/{maintenance_id}`
- Auth: HTTP bearer

Before it starts every field can change; once it has started, only the
title, description and end. A cancelled or completed window cannot
change. Changes are shown on the page but not announced again.

## Path parameters

- `status_page_id` integer, required
- `maintenance_id` integer, required

## Request body

- UpdateMaintenanceRequest: Fields left out are unchanged. Once a window has started, only `title`, `description` and `ends_at` can change.
  - `description` string, nullable: An empty string removes the description.
  - `ends_at` string, date-time, nullable
  - `monitor_ids` integer[], nullable
  - `starts_at` string, date-time, nullable
  - `title` string, nullable

## Response `200`

Maintenance window updated

- 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 or window not found
- `409`: The window can no longer change that way
- `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/:maintenance_id/patch.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)
