{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/insightgenius-io/json-schema/insightgenius-io-body-auto-analyze-v1-auto-analyze-post-schema.json",
  "title": "Body_auto_analyze_v1_auto_analyze_post",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/insightgenius-io-openapi.json#/components/schemas/Body_auto_analyze_v1_auto_analyze_post",
  "properties": {
    "background_book": {
      "type": "boolean",
      "title": "Background Book",
      "description": "Paid background export budget",
      "default": false
    },
    "file": {
      "type": "string",
      "contentMediaType": "application/octet-stream",
      "title": "File",
      "description": "SPSS .sav file (or use file_id)"
    },
    "file_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "File Id",
      "description": "File session ID from /v1/library/upload"
    },
    "ticket": {
      "type": "string",
      "contentMediaType": "application/octet-stream",
      "title": "Ticket",
      "description": "Reporting Ticket .docx — AI parses it to override auto-detection"
    },
    "options": {
      "type": "string",
      "title": "Options",
      "description": "Optional JSON: {\"max_banners\": 3, \"output_mode\": \"multi_sheet\", \"significance_level\": 0.95}",
      "default": "{}"
    },
    "response_format": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Response Format",
      "description": "\"xlsx\" (default): the workbook as a binary stream. \"bundle\": JSON with the workbook in base64, the stats, and the assumptions the engine made for THIS run."
    }
  },
  "type": "object"
}