{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/outreach2day-com/json-schema/outreach2day-com-campaign-step-create-in-schema.json",
  "title": "CampaignStepCreateIn",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/outreach2day-com-openapi.json#/components/schemas/CampaignStepCreateIn",
  "properties": {
    "order": {
      "type": "integer",
      "minimum": 1.0,
      "title": "Order"
    },
    "delaySeconds": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Delayseconds",
      "description": "Delay AFTER this step before the next step can be sent."
    },
    "delayDays": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Delaydays",
      "description": "Delay AFTER this step before the next step can be sent (in days)."
    },
    "subject": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Subject"
    },
    "body": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Body"
    },
    "bodyText": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Bodytext"
    },
    "bodyHtml": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Bodyhtml"
    },
    "variants": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/CampaignStepVariantIn"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Variants"
    },
    "text_html_validation_override": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Text Html Validation Override",
      "description": "A reason to save a plain-text body that contains HTML tags anyway. Without it such a body is refused with 422 TEXT_BODY_LOOKS_LIKE_HTML. The reason is logged and never stored."
    }
  },
  "additionalProperties": true,
  "type": "object",
  "required": [
    "order"
  ],
  "$defs": {
    "CampaignStepVariantIn": {
      "properties": {
        "subject": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Subject"
        },
        "body": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Body"
        },
        "bodyText": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Bodytext"
        },
        "bodyHtml": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Bodyhtml"
        },
        "text_html_validation_override": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Text Html Validation Override",
          "description": "A reason to save a plain-text body that contains HTML tags anyway. Without it such a body is refused with 422 TEXT_BODY_LOOKS_LIKE_HTML. The reason is logged and never stored."
        },
        "weight": {
          "anyOf": [
            {
              "type": "integer",
              "maximum": 10000.0,
              "minimum": 1.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Weight"
        },
        "share": {
          "anyOf": [
            {
              "type": "number",
              "maximum": 1.0,
              "minimum": 0.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Share"
        }
      },
      "additionalProperties": true,
      "type": "object",
      "title": "CampaignStepVariantIn"
    }
  }
}