{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/uptimerobot/json-schema/uptimerobot-update-maintenance-window-dto-schema.json",
  "title": "UpdateMaintenanceWindowDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/uptimerobot-maintenance-windows-api-openapi.yml#/components/schemas/UpdateMaintenanceWindowDto",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 255,
      "description": "Name of the maintenance window"
    },
    "interval": {
      "enum": [
        "once",
        "daily",
        "weekly",
        "monthly"
      ],
      "type": "string"
    },
    "date": {
      "type": "string",
      "description": "Start date of the maintenance window in YYYY-MM-DD format (years 19xx or 20xx only)"
    },
    "time": {
      "type": "string",
      "pattern": "/^(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d$/",
      "description": "Time format in HH:mm:ss"
    },
    "duration": {
      "type": "number",
      "minimum": 1,
      "description": "Duration in minutes"
    },
    "days": {
      "description": "(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)",
      "type": "array",
      "items": {
        "type": "number"
      }
    },
    "monitorIds": {
      "description": "Array of monitor IDs to associate with this maintenance window",
      "type": "array",
      "items": {
        "type": "number"
      }
    },
    "status": {
      "enum": [
        "active",
        "paused"
      ],
      "type": "string",
      "description": "Pause or resume the maintenance window. `paused` stops it from suppressing alerts; `active` re-enables it. Omit to leave the current status unchanged."
    }
  }
}