{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/sinch/main/json-schema/sinch-update-contact-request-schema.json",
  "title": "UpdateContactRequest",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sinch-contacts-api-openapi.yml#/components/schemas/UpdateContactRequest",
  "type": "object",
  "properties": {
    "display_name": {
      "type": "string",
      "description": "Updated display name"
    },
    "email": {
      "type": "string",
      "format": "email",
      "description": "Updated email address"
    },
    "external_id": {
      "type": "string",
      "description": "Updated external identifier"
    },
    "language": {
      "type": "string",
      "description": "Updated preferred language"
    },
    "metadata": {
      "type": "string",
      "description": "Updated metadata"
    },
    "channel_identities": {
      "type": "array",
      "description": "Updated channel identities",
      "items": {
        "$ref": "#/$defs/ChannelIdentity"
      }
    }
  },
  "$defs": {
    "ChannelIdentity": {
      "type": "object",
      "properties": {
        "channel": {
          "type": "string",
          "enum": [
            "SMS",
            "RCS",
            "WHATSAPP",
            "MESSENGER",
            "INSTAGRAM",
            "VIBER",
            "VIBERBM",
            "TELEGRAM",
            "KAKAOTALK",
            "LINE",
            "MMS"
          ],
          "description": "The channel type"
        },
        "identity": {
          "type": "string",
          "description": "The channel-specific identity"
        },
        "app_id": {
          "type": "string",
          "description": "The app ID for the channel"
        }
      }
    }
  }
}