---
title: "Update a maintenance window"
method: PATCH
path: "/maintenance-windows/{id}"
tags: ["Maintenance Windows"]
---

# Update a maintenance window

`PATCH /maintenance-windows/{id}`

Update a maintenance window

## Path parameters

- `id` number, required

## Request body

- UpdateMaintenanceWindowDto
  - `name` string — Name of the maintenance window
  - `interval` 'once' | 'daily' | 'weekly' | 'monthly'
  - `date` string — Start date of the maintenance window in YYYY-MM-DD format (years 19xx or 20xx only)
  - `time` string — Time format in HH:mm:ss
  - `duration` number — Duration in minutes
  - `days` number[] — (only needed for weekly and monthly maintenance windows). E.g. [2, 4, 5] for Tuesday, Thursday and Friday or [10, 17, 26] for the days of the month. -1 for last day of the month)
  - `monitorIds` number[] — Array of monitor IDs to associate with this maintenance window
  - `status` 'active' | 'paused' — Pause or resume the maintenance window. `paused` stops it from suppressing alerts; `active` re-enables it. Omit to leave the current status unchanged.

## Response `200`

- MaintenanceWindowDto
  - `id` number, required
  - `userId` number, required
  - `name` string, required
  - `interval` 'once' | 'daily' | 'weekly' | 'monthly', required
  - `date` string, nullable, required
  - `time` string, required
  - `duration` number, required
  - `autoAddMonitors` boolean, required
  - `monitorIds` number[], required
  - `days` number[], required
  - `status` 'active' | 'paused', required
  - `created` union, required
    - unknown
    - string

---

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