{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fluxito-app/json-schema/fluxito-app-create-automation-payload-schema.json",
  "title": "CreateAutomationPayload",
  "x-generated": "2026-11-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fluxito-app-openapi.json#/components/schemas/CreateAutomationPayload",
  "properties": {
    "title": {
      "type": "string",
      "maxLength": 255,
      "minLength": 1,
      "title": "Title"
    },
    "description": {
      "type": "string",
      "maxLength": 2000,
      "title": "Description",
      "default": ""
    },
    "theme": {
      "type": "string",
      "title": "Theme"
    },
    "prompt_template": {
      "type": "string",
      "minLength": 1,
      "title": "Prompt Template"
    },
    "required_platforms": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Required Platforms"
    },
    "default_cron": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 64
        },
        {
          "type": "null"
        }
      ],
      "title": "Default Cron"
    },
    "default_schedule_label": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 64
        },
        {
          "type": "null"
        }
      ],
      "title": "Default Schedule Label"
    },
    "cooldown_hours": {
      "type": "integer",
      "title": "Cooldown Hours",
      "default": 0
    },
    "channel_hints": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Channel Hints"
    },
    "icon": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 32
        },
        {
          "type": "null"
        }
      ],
      "title": "Icon"
    },
    "variables": {
      "items": {
        "additionalProperties": true,
        "type": "object"
      },
      "type": "array",
      "title": "Variables"
    }
  },
  "type": "object",
  "required": [
    "title",
    "theme",
    "prompt_template"
  ]
}