{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/awraiter-ai/json-schema/awraiter-ai-create-poll-input-schema.json",
  "title": "CreatePollInput",
  "x-generated": "2026-11-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/awraiter-ai-openapi.json#/components/schemas/CreatePollInput",
  "type": "object",
  "properties": {
    "channelId": {
      "type": "number"
    },
    "question": {
      "type": "string",
      "maxLength": 300,
      "description": "Poll question, plain text, up to 300 characters."
    },
    "options": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 100
      },
      "minItems": 2,
      "maxItems": 10,
      "description": "2 to 10 distinct answer options, plain text, up to 100 characters each, in display order."
    },
    "allowsMultipleAnswers": {
      "type": "boolean",
      "description": "Let subscribers pick several options. Default false. Not allowed for a quiz."
    },
    "correctOption": {
      "type": "integer",
      "minimum": 0,
      "description": "Makes the poll a quiz: 0-based index of the one correct option."
    }
  },
  "required": [
    "channelId",
    "question",
    "options"
  ],
  "additionalProperties": false
}