{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nopaque-co-uk/json-schema/nopaque-co-uk-update-schedule-request-schema.json",
  "title": "UpdateScheduleRequest",
  "description": "Body for `PUT /schedules/{id}`. Semantics are PATCH-like — only supplied fields\nare applied. Changes to `scheduleType`/`cronExpression`/`intervalMinutes`/`runAt`/\n`timezone` recompute `nextRunAt`. `enabled` is set via a JSON boolean (the server\nconverts to its `'true'`/`'false'` string form for storage).\n",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nopaque-co-uk-schedules-api-openapi.yml#/components/schemas/UpdateScheduleRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "scheduleType": {
      "$ref": "#/$defs/ScheduleType"
    },
    "cronExpression": {
      "type": "string"
    },
    "intervalMinutes": {
      "type": "integer",
      "minimum": 1
    },
    "runAt": {
      "type": "string",
      "format": "date-time"
    },
    "timezone": {
      "type": "string"
    },
    "enabled": {
      "type": "boolean",
      "description": "Set true to enable, false to pause. Convenience field — `pauseSchedule`/`resumeSchedule` are the preferred entry points."
    }
  },
  "$defs": {
    "ScheduleType": {
      "type": "string",
      "enum": [
        "once",
        "recurring",
        "cron"
      ],
      "description": "Trigger semantics. `once` fires at the specific `runAt` timestamp; `recurring`\nfires every `intervalMinutes`; `cron` fires according to the supplied\n`cronExpression` (5-field cron syntax interpreted in `timezone`).\n"
    }
  }
}