{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/geogridapi-io/json-schema/geogridapi-io-create-schedule-request-schema.json",
  "title": "CreateScheduleRequest",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/geogridapi-io-openapi.json#/components/schemas/CreateScheduleRequest",
  "type": "object",
  "required": [
    "grid_id",
    "frequency"
  ],
  "properties": {
    "grid_id": {
      "type": "string",
      "format": "uuid",
      "description": "An existing completed grid to repeat."
    },
    "frequency": {
      "type": "string",
      "enum": [
        "weekly",
        "monthly"
      ]
    },
    "weekday": {
      "type": "integer",
      "minimum": 1,
      "maximum": 7,
      "description": "Weekly: 1 = Monday … 7 = Sunday (default 1)."
    },
    "month_day": {
      "type": "integer",
      "minimum": 1,
      "maximum": 28,
      "description": "Monthly: day of the month (default 1)."
    }
  },
  "additionalProperties": false
}