{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/onetapvote-com/json-schema/onetapvote-com-post-polls-request-schema.json",
  "title": "PostPollsRequest",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/onetapvote-com-openapi-generated.yml#/components/schemas/PostPollsRequest",
  "type": "object",
  "properties": {
    "title": {
      "type": "string",
      "description": "1–200 characters."
    },
    "description": {
      "type": "string",
      "description": "Optional, up to 1000 characters."
    },
    "type": {
      "type": "string",
      "description": "One of multiple_choice , yes_no , rating . Default multiple_choice."
    },
    "options": {
      "type": "array",
      "description": "Between 2 and 10 options. For yes_no / rating types options are auto-set; you can omit them."
    },
    "settings.allowMultipleVotes": {
      "type": "boolean",
      "description": "Allow each voter to cast more than one vote. Default false."
    },
    "settings.showResults": {
      "type": "boolean",
      "description": "Whether voters can see the running tally. Default true."
    },
    "settings.resultsVisibility": {
      "type": "string",
      "description": "One of always , after_vote , after_closing . Default always."
    },
    "settings.expiresAt": {
      "type": "string",
      "description": "ISO 8601 datetime. When the poll auto-closes."
    }
  },
  "required": [
    "title",
    "options"
  ]
}