{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/askone-org/json-schema/askone-org-post-rooms-code-surveys-request-schema.json",
  "title": "PostRoomsCodeSurveysRequest",
  "x-generated": "2026-11-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/askone-org-openapi-generated.yml#/components/schemas/PostRoomsCodeSurveysRequest",
  "type": "object",
  "properties": {
    "question": {
      "type": "string",
      "description": "1 to 200 characters."
    },
    "type": {
      "type": "string",
      "description": "poll, quiz, rating or word_cloud."
    },
    "options": {
      "type": "array",
      "description": "Required for poll and quiz: 2‑8 strings, each 1‑80 chars."
    },
    "allow_multiple": {
      "type": "boolean",
      "description": "Poll only, default false."
    },
    "correct_option": {
      "type": "integer",
      "description": "Quiz only, zero‑based index of correct answer."
    },
    "scale": {
      "type": "integer",
      "description": "Rating only: 5 or 10, default 5."
    },
    "low_label": {
      "type": "string",
      "description": "Rating low end label."
    },
    "high_label": {
      "type": "string",
      "description": "Rating high end label."
    },
    "show_results": {
      "type": "boolean",
      "description": "Whether audience may see results, default true."
    },
    "launch": {
      "type": "boolean",
      "description": "Launch now (requires open room), default true."
    },
    "request_id": {
      "type": "string",
      "description": "UUID for safe retries."
    },
    "room_title": {
      "type": "string",
      "description": "Compatibility field, ignored."
    }
  },
  "required": [
    "question",
    "type"
  ]
}