{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pipecorn-com/json-schema/pipecorn-com-persona-update-schema.json",
  "title": "PersonaUpdate",
  "description": "Only the fields you send are changed. Included and excluded lists of the same kind (job titles, industries, locations) are replaced together: sending either one replaces both.",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pipecorn-com-openapi.json#/components/schemas/PersonaUpdate",
  "type": "object",
  "properties": {
    "name": {
      "description": "Name of the persona. Omit or leave blank to keep the current name.",
      "type": "string"
    },
    "description": {
      "description": "Free-text description of the persona. Send null to clear it; omit to keep it.",
      "type": "string"
    },
    "job_titles": {
      "description": "Job titles to include. Replaces the stored list when sent; omit to keep it.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "excluded_job_titles": {
      "description": "Job titles to exclude. Replaces the stored list when sent; omit to keep it.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "ai_expand_job_titles": {
      "description": "Expand `job_titles` with AI-suggested variants before saving. Suggested titles to exclude are added to `excluded_job_titles`.",
      "type": "boolean",
      "default": false
    },
    "included_industries": {
      "description": "Industry IDs to include. Replaces the stored list when sent; omit to keep it.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "excluded_industries": {
      "description": "Industry IDs to exclude. Replaces the stored list when sent; omit to keep it.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "included_locations": {
      "description": "Location IDs to include. Look them up with the locations endpoint.. Replaces the stored list when sent; omit to keep it.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "excluded_locations": {
      "description": "Location IDs to exclude. Replaces the stored list when sent; omit to keep it.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "company_size": {
      "description": "Company headcount ranges. Replaces the stored list when sent; omit to keep it. The LinkedIn size codes `A`–`I` are also accepted for older integrations, and are returned as sent.",
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "Self-employed",
          "1-10",
          "11-50",
          "51-200",
          "201-500",
          "501-1000",
          "1001-5000",
          "5001-10000",
          "10001+"
        ]
      }
    }
  }
}