---
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

---

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