{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/muse-space/json-schema/muse-space-contacts-create-input-schema.json",
  "title": "contacts_create_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_create_input",
  "type": "object",
  "properties": {
    "address_book_id": {
      "description": "Address book id from list_address_books; omit for the first that can be written.",
      "type": "string",
      "maxLength": 200
    },
    "name": {
      "description": "The name as shown; omit to build it from the parts.",
      "type": "string",
      "maxLength": 200
    },
    "given_name": {
      "description": "First name.",
      "type": "string",
      "maxLength": 200
    },
    "family_name": {
      "description": "Last name.",
      "type": "string",
      "maxLength": 200
    },
    "organization": {
      "description": "Company or organization.",
      "type": "string",
      "maxLength": 200
    },
    "job_title": {
      "description": "Job title.",
      "type": "string",
      "maxLength": 200
    },
    "emails": {
      "description": "Email addresses, the preferred one first.",
      "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": "Phone numbers, the preferred one first.",
      "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": "Postal addresses.",
      "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": "Web addresses.",
      "maxItems": 10,
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 2000,
        "format": "uri"
      }
    },
    "birthday": {
      "description": "Birthday as YYYY-MM-DD.",
      "type": "string",
      "format": "date"
    },
    "notes": {
      "description": "Notes kept with the contact.",
      "type": "string",
      "maxLength": 20000
    }
  },
  "additionalProperties": false
}