{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/optus/main/json-schema/optus-schedule-campaign-request-schema.json",
  "title": "ScheduleCampaignRequest",
  "x-generated": "2026-10-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/optus-scheduled-campaigns-api-openapi.yml#/components/schemas/ScheduleCampaignRequest",
  "type": "object",
  "required": [
    "name",
    "schedule",
    "members"
  ],
  "properties": {
    "batch": {
      "type": "string",
      "maxLength": 255,
      "minLength": 1
    },
    "content": {
      "type": "string",
      "minLength": 1
    },
    "email": {
      "type": "string",
      "format": "email",
      "maxLength": 254,
      "minLength": 3
    },
    "mask": {
      "type": "string",
      "maxLength": 11,
      "minLength": 1
    },
    "members": {
      "type": "array",
      "maxItems": 1000000,
      "minItems": 1,
      "items": {
        "$ref": "#/$defs/Member"
      }
    },
    "name": {
      "type": "string",
      "maxLength": 50,
      "minLength": 1
    },
    "opt_out_response": {
      "type": "string",
      "maxLength": 160,
      "minLength": 1
    },
    "remove_opt_outs": {
      "type": "boolean",
      "default": true
    },
    "reply_response": {
      "type": "string",
      "maxLength": 160,
      "minLength": 1
    },
    "schedule": {
      "type": "string",
      "format": "date-time"
    },
    "strict_validation": {
      "type": "boolean",
      "default": true
    },
    "template": {
      "type": "string"
    }
  },
  "$defs": {
    "Member": {
      "type": "object",
      "required": [
        "destination"
      ],
      "properties": {
        "destination": {
          "type": "string",
          "minLength": 1
        },
        "param1": {
          "type": "string",
          "maxLength": 50,
          "minLength": 1
        },
        "param2": {
          "type": "string",
          "maxLength": 50,
          "minLength": 1
        },
        "param3": {
          "type": "string",
          "maxLength": 50,
          "minLength": 1
        },
        "param4": {
          "type": "string",
          "maxLength": 50,
          "minLength": 1
        },
        "param5": {
          "type": "string",
          "maxLength": 50,
          "minLength": 1
        },
        "param6": {
          "type": "string",
          "maxLength": 50,
          "minLength": 1
        }
      }
    }
  }
}