{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lynx/json-schema/lynx-update-related-person-phones-request-doc-schema.json",
  "title": "UpdateRelatedPersonPhonesRequestDoc",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lynx-relatedpersons-api-openapi.yml#/components/schemas/UpdateRelatedPersonPhonesRequestDoc",
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/$defs/UpdateRelatedPersonPhonesRequest"
    },
    "idempotency": {
      "$ref": "#/$defs/Idempotency",
      "description": "Unique identifier that represents the operation"
    }
  },
  "required": [
    "data",
    "idempotency"
  ],
  "$defs": {
    "BaseMember": {
      "type": "object",
      "properties": {
        "clientMemberId": {
          "type": "string",
          "description": "Unique client-side identifier for the member"
        }
      },
      "required": [
        "clientMemberId"
      ]
    },
    "ClientOrgDto": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the client organization"
        }
      },
      "required": [
        "name"
      ]
    },
    "Idempotency": {
      "type": "object",
      "properties": {
        "idempotencyKey": {
          "type": "string",
          "description": "Unique identifier that represents the operation"
        }
      }
    },
    "PhoneDto": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "Auto-generated type for the phone number"
        },
        "typeDescription": {
          "type": "string",
          "description": "Client-defined description for the phone number"
        },
        "countryCode": {
          "type": "string",
          "default": "1",
          "description": "Phone country code"
        },
        "phoneNumber": {
          "type": "string",
          "description": "10-Digit phone number"
        },
        "phoneExtension": {
          "type": "integer",
          "format": "int32",
          "description": "Optional extension"
        },
        "primaryIndicator": {
          "type": "boolean",
          "description": "Determines whether this is a primary phone"
        }
      },
      "required": [
        "countryCode",
        "phoneNumber"
      ]
    },
    "RelatedPersonPhonesDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "description": "Unique identifier for the related person"
        },
        "phones": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PhoneDto"
          }
        }
      },
      "required": [
        "id",
        "phones"
      ]
    },
    "UpdateRelatedPersonPhonesRequest": {
      "type": "object",
      "properties": {
        "clientOrg": {
          "$ref": "#/$defs/ClientOrgDto"
        },
        "member": {
          "$ref": "#/$defs/BaseMember"
        },
        "relatedPerson": {
          "$ref": "#/$defs/RelatedPersonPhonesDto"
        }
      }
    }
  }
}