{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cavuno-com/json-schema/cavuno-com-update-company-body-schema.json",
  "title": "UpdateCompanyBody",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cavuno-com-companies-api-openapi.yml#/components/schemas/UpdateCompanyBody",
  "type": "object",
  "properties": {
    "website": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 200,
      "description": "Public company website URL. Normalized to a canonical apex domain when stored. Pass `null` or `\"\"` to clear the stored value; omitted means unchanged."
    },
    "summary": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 280,
      "description": "One-line summary of the company. Up to 280 characters. Pass `null` or `\"\"` to clear the stored value; omitted means unchanged."
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 25000,
      "description": "Long-form description of the company, as HTML. Up to 25,000 characters. The HTML is sanitized on write: tags and attributes outside the supported formatting set (paragraphs, headings, lists, links, inline emphasis) are removed. Plain text without HTML tags is converted to paragraphs. Pass `null` or `\"\"` to clear the stored value; omitted means unchanged."
    },
    "xUrl": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 500,
      "description": "X (Twitter) profile URL or handle. Stored as the canonical handle. Pass `null` or `\"\"` to clear the stored value; omitted means unchanged."
    },
    "linkedinUrl": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 500,
      "description": "LinkedIn company page URL. Pass `null` or `\"\"` to clear the stored value; omitted means unchanged."
    },
    "facebookUrl": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 500,
      "description": "Facebook company page URL. Pass `null` or `\"\"` to clear the stored value; omitted means unchanged."
    },
    "instagramUrl": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 500,
      "description": "Instagram profile URL or handle. Pass `null` or `\"\"` to clear the stored value; omitted means unchanged."
    },
    "markets": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 150,
        "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
      },
      "description": "Canonical market slugs assigned to the company. Pass an empty array to clear all markets."
    },
    "parentCompanyId": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 1,
      "description": "Makes this company a subsidiary of another company in the same account: the parent company's `id`. Groups are one level deep, so the parent cannot itself be a subsidiary, and a company with subsidiaries cannot get a parent. A subsidiary may use its parent's website domain (or a path on it); it is then not filled in automatically from the website, and shows the parent's logo until it has its own. Changing it changes the public company page, so confirm with the operator first. Pass `null` to remove the company from its group; omitted means unchanged."
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120,
      "description": "The company's display name."
    },
    "slug": {
      "type": "string",
      "minLength": 1,
      "maxLength": 150,
      "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
      "description": "URL-friendly slug for the company."
    }
  },
  "additionalProperties": false
}