{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/muse-space/json-schema/muse-space-contacts-update-input-schema.json",
  "title": "contacts_update_input",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/muse-space-openapi.json#/components/schemas/contacts_update_input",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "maxLength": 711,
      "description": "The `id` of a contact from search."
    },
    "name": {
      "description": "The name as shown.",
      "type": "string",
      "maxLength": 200
    },
    "given_name": {
      "description": "First name; null removes it.",
      "anyOf": [
        {
          "type": "string",
          "maxLength": 200
        },
        {
          "type": "null"
        }
      ]
    },
    "family_name": {
      "description": "Last name; null removes it.",
      "anyOf": [
        {
          "type": "string",
          "maxLength": 200
        },
        {
          "type": "null"
        }
      ]
    },
    "organization": {
      "description": "Organization; null removes it.",
      "anyOf": [
        {
          "type": "string",
          "maxLength": 200
        },
        {
          "type": "null"
        }
      ]
    },
    "job_title": {
      "description": "Job title; null removes it.",
      "anyOf": [
        {
          "type": "string",
          "maxLength": 200
        },
        {
          "type": "null"
        }
      ]
    },
    "emails": {
      "description": "Every email address it should have, the preferred one first: the list replaces the old one; [] removes all.",
      "maxItems": 20,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "address": {
            "type": "string",
            "maxLength": 254,
            "description": "The email address."
          },
          "label": {
            "description": "What kind: work, home, mobile, or a word of their own.",
            "type": "string",
            "maxLength": 40
          }
        },
        "required": [
          "address"
        ],
        "additionalProperties": false
      }
    },
    "phones": {
      "description": "Every phone number it should have, the preferred one first: the list replaces the old one; [] removes all.",
      "maxItems": 20,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "number": {
            "type": "string",
            "maxLength": 40,
            "description": "The number, as it should be dialled or shown."
          },
          "label": {
            "description": "What kind: work, home, mobile, or a word of their own.",
            "type": "string",
            "maxLength": 40
          }
        },
        "required": [
          "number"
        ],
        "additionalProperties": false
      }
    },
    "addresses": {
      "description": "Every postal address it should have, replacing the old ones; [] removes all.",
      "maxItems": 10,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "street": {
            "description": "Street and number, as one line.",
            "type": "string",
            "maxLength": 200
          },
          "city": {
            "description": "Town or city.",
            "type": "string",
            "maxLength": 100
          },
          "region": {
            "description": "State, county or province.",
            "type": "string",
            "maxLength": 100
          },
          "postal_code": {
            "description": "Postal code.",
            "type": "string",
            "maxLength": 20
          },
          "country": {
            "description": "Country.",
            "type": "string",
            "maxLength": 100
          },
          "label": {
            "description": "What kind: work, home, mobile, or a word of their own.",
            "type": "string",
            "maxLength": 40
          }
        },
        "additionalProperties": false
      }
    },
    "urls": {
      "description": "Every web address it should have, replacing the old ones; [] removes all.",
      "maxItems": 10,
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 2000,
        "format": "uri"
      }
    },
    "birthday": {
      "description": "Birthday as YYYY-MM-DD; null removes it.",
      "anyOf": [
        {
          "type": "string",
          "format": "date"
        },
        {
          "type": "null"
        }
      ]
    },
    "notes": {
      "description": "Notes; null removes them.",
      "anyOf": [
        {
          "type": "string",
          "maxLength": 20000
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "id"
  ],
  "additionalProperties": false
}