Create Maintenance
createMaintenanceSchedules a new maintenance window. During maintenance, the monitors in monitorIDs are suppressed and show MAINTENANCE status instead of DOWN. A window created without monitorIDs suppresses nothing.
Instructions
Schedules a new maintenance window. During maintenance, the monitors in monitorIDs are suppressed and show MAINTENANCE status instead of DOWN. A window created without monitorIDs suppresses nothing. Use strategy "manual" for a window you switch on and off with resumeMaintenance / pauseMaintenance.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cron | No | Cron expression for when the window starts, e.g. "30 3 * * *" (03:30 daily), for the cron strategy | |
| title | Yes | Title of the maintenance window | |
| active | No | Whether the window is active (default: true). For a manual window, active means in maintenance right now. | |
| strategy | Yes | Scheduling strategy: single=one-time, recurring-interval=every N days, recurring-weekday=specific weekdays, recurring-day-of-month=specific dates, cron=starts on a cron expression and lasts durationMinutes, manual=on whenever active | |
| timezone | No | Timezone the dates and times are in (e.g. "America/New_York", "UTC"). Omit to follow the server timezone. | |
| weekdays | No | Days of week (0=Sunday … 6=Saturday) for recurring-weekday strategy | |
| dateRange | No | [start, end] as local wall-clock times in the window's timezone, e.g. ["2026-10-08T10:00", "2026-10-08T12:00"] — the format Uptime Kuma's own UI stores. Required for single; optional bounds for recurring strategies; ignored for manual. | |
| timeRange | No | Daily [{hours, minutes}, {hours, minutes}] start and end. Required for the recurring-* strategies, ignored otherwise. | |
| monitorIDs | No | IDs of the monitors this window suppresses. A window with no monitors suppresses nothing. On update this REPLACES the current list; pass [] to detach all. | |
| daysOfMonth | No | Days of month (1-31) for recurring-day-of-month strategy | |
| description | No | Description or reason for the maintenance | |
| intervalDay | No | Interval in days for recurring-interval strategy | |
| durationMinutes | No | How long each window lasts, in minutes, for the cron strategy |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| msg | No | ||
| monitorIDs | No | ||
| maintenanceID | No |