{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/omniapps-ca/json-schema/omniapps-ca-schedule-cron-request-schema.json",
  "title": "ScheduleCronRequest",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sairen-omniapps-ca-openapi.json#/components/schemas/ScheduleCronRequest",
  "properties": {
    "webhook_url": {
      "type": "string",
      "title": "Webhook Url",
      "description": "Target HTTP/HTTPS URL to trigger when scheduled time arrives."
    },
    "schedule_type": {
      "type": "string",
      "title": "Schedule Type",
      "description": "'delay' (one-shot wake) or 'interval' (recurring cron).",
      "default": "delay"
    },
    "delay_seconds": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 604800.0,
          "minimum": 5.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Delay Seconds",
      "description": "Delay before one-shot trigger (5s to 7d).",
      "default": 60
    },
    "interval_seconds": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 604800.0,
          "minimum": 60.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Interval Seconds",
      "description": "Interval between recurring triggers (>= 60s)."
    },
    "max_iterations": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 100.0,
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Max Iterations",
      "description": "Maximum execution iterations for recurring triggers (1-100).",
      "default": 10
    },
    "payload": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Payload",
      "description": "Arbitrary JSON payload dispatched to webhook."
    },
    "owner_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Owner Id",
      "description": "Optional agent or client identifier.",
      "default": "agent"
    }
  },
  "type": "object",
  "required": [
    "webhook_url"
  ]
}