---
title: "Edit a maintenance window"
method: PATCH
path: "/maintenance-window/{id}"
tags: ["maintenance-window"]
---

# Edit a maintenance window

`PATCH /maintenance-window/{id}`

## Path parameters

- `id` string, required

## Request body

- object
  - `active` boolean
  - `name` string
  - `repeat` number
  - `start` string, date-time, nullable
  - `end` string, date-time, nullable
  - `expiry` string, date-time, nullable
  - `monitors` string[]
  - `duration` number
  - `durationUnit` 'seconds' | 'minutes' | 'hours' | 'days'

## Response `200`

OK

- object
  - `success` true, required
  - `msg` string, required
  - `data` unknown

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `500` — Internal server error

## Changes

- **2026-05-27** `dd1708803c7c` — 1 breaking
  - the `monitors` request property's minItems was increased to `1`
- **2026-05-01** `39082d385dda` — 1 info
  - endpoint added
- **2025-04-20** `b97ec6888b3c` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/bluewave-labs/apis/checkmate-api/changes/maintenance-window/:id/patch.md)

---

[API](https://skmtc.dev/bluewave-labs/apis/checkmate-api.md) · [All operations](https://skmtc.dev/bluewave-labs/apis/checkmate-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/bluewave-labs/checkmate-api/revisions/ca827e5b975f/schema)
