{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/cuebiq/main/json-schema/cuebiq-create-campaign-request-schema.json",
  "title": "CreateCampaignRequest",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cuebiq-openapi.json#/components/schemas/CreateCampaignRequest",
  "required": [
    "name",
    "brandId",
    "flightDatesRange",
    "conversionWindow",
    "conversionIntervalRange"
  ],
  "type": "object",
  "properties": {
    "name": {
      "type": [
        "string",
        "null"
      ]
    },
    "brandId": {
      "format": "int32",
      "type": [
        "integer",
        "null"
      ]
    },
    "flightDatesRange": {
      "allOf": [
        {
          "$ref": "#/$defs/LocalDateRange1"
        }
      ],
      "nullable": true
    },
    "conversionWindow": {
      "format": "int32",
      "minimum": 0,
      "exclusiveMinimum": true,
      "type": [
        "integer",
        "null"
      ]
    },
    "conversionIntervalRange": {
      "allOf": [
        {
          "$ref": "#/$defs/LocalDateRange1"
        }
      ],
      "nullable": true
    },
    "externalRef": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "$defs": {
    "LocalDate": {
      "format": "date",
      "type": "string"
    },
    "LocalDateRange1": {
      "required": [
        "start",
        "end"
      ],
      "type": "object",
      "properties": {
        "start": {
          "allOf": [
            {
              "$ref": "#/$defs/LocalDate"
            }
          ],
          "nullable": true
        },
        "end": {
          "allOf": [
            {
              "$ref": "#/$defs/LocalDate"
            }
          ],
          "nullable": true
        }
      }
    }
  }
}