{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/heymarvin/json-schema/heymarvin-post-api-v1-developer-import-surveys-initialize-request-schema.json",
  "title": "PostApiV1DeveloperImportSurveysInitializeRequest",
  "x-generated": "2026-10-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/heymarvin-openapi-generated.yml#/components/schemas/PostApiV1DeveloperImportSurveysInitializeRequest",
  "type": "object",
  "properties": {
    "project_id": {
      "type": "integer",
      "description": "ID from the list projects response"
    },
    "name": {
      "type": "string",
      "description": "Survey name (max 200 chars)"
    },
    "file_type": {
      "type": "string",
      "description": "Must be \"CSV\""
    },
    "num_parts": {
      "type": "integer",
      "description": "Number of CSV parts to upload (1–100)"
    },
    "column_mapping": {
      "type": "object",
      "description": "Map CSV column names to types"
    },
    "auto_map": {
      "type": "boolean",
      "description": "Use AI to auto-detect column types (default: false)"
    },
    "add_to_research_panel": {
      "type": "boolean",
      "description": "Add respondents to Research Panel (default: true)"
    },
    "media_config": {
      "type": "object",
      "description": "Enables respondent-level media linking"
    },
    "idempotency_key": {
      "type": "string",
      "description": "Unique key to prevent duplicates (max 255 chars)"
    }
  },
  "required": [
    "project_id",
    "name",
    "file_type",
    "num_parts"
  ]
}