{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/uptimerobot/json-schema/uptimerobot-create-maintenance-window-dto-schema.json",
  "title": "CreateMaintenanceWindowDto",
  "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/CreateMaintenanceWindowDto",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 255,
      "description": "Friendly name of the maintenance window"
    },
    "autoAddMonitors": {
      "type": "boolean",
      "description": "If true, all monitors are automatically added to this 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": "Start time of the maintenance window in HH:mm:ss format"
    },
    "duration": {
      "type": "number",
      "minimum": 1,
      "description": "Duration of the maintenance window in minutes. Maintenance window will be active for this duration"
    },
    "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": "List of monitor IDs to be assigned to the maintenance window",
      "type": "array",
      "items": {
        "type": "number"
      }
    }
  },
  "required": [
    "name",
    "interval",
    "date",
    "time",
    "duration"
  ]
}