{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-connect/json-schema/amazon-connect-update-profile-request-schema.json",
  "title": "UpdateProfileRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-connect-profiles-api-openapi.yml#/components/schemas/UpdateProfileRequest",
  "type": "object",
  "properties": {
    "DomainName": {
      "type": "string",
      "description": "The unique name of the domain."
    },
    "ProfileId": {
      "type": "string",
      "description": "The unique identifier of a customer profile."
    },
    "AdditionalInformation": {
      "type": "string",
      "description": "Any additional information relevant to the customer’s profile."
    },
    "AccountNumber": {
      "type": "string",
      "description": "An account number that you have assigned to the customer."
    },
    "PartyType": {
      "type": "string",
      "enum": [
        "INDIVIDUAL",
        "BUSINESS",
        "OTHER"
      ],
      "description": "The type of profile used to describe the customer."
    },
    "BusinessName": {
      "type": "string",
      "description": "The name of the customer’s business."
    },
    "FirstName": {
      "type": "string",
      "description": "The customer’s first name."
    },
    "MiddleName": {
      "type": "string",
      "description": "The customer’s middle name."
    },
    "LastName": {
      "type": "string",
      "description": "The customer’s last name."
    },
    "BirthDate": {
      "type": "string",
      "description": "The customer’s birth date."
    },
    "Gender": {
      "type": "string",
      "enum": [
        "MALE",
        "FEMALE",
        "UNSPECIFIED"
      ],
      "description": "The gender with which the customer identifies."
    },
    "PhoneNumber": {
      "type": "string",
      "description": "The customer’s phone number, which has not been specified as a mobile, home, or business number."
    },
    "MobilePhoneNumber": {
      "type": "string",
      "description": "The customer’s mobile phone number."
    },
    "HomePhoneNumber": {
      "type": "string",
      "description": "The customer’s home phone number."
    },
    "BusinessPhoneNumber": {
      "type": "string",
      "description": "The customer’s business phone number."
    },
    "EmailAddress": {
      "type": "string",
      "description": "The customer’s email address, which has not been specified as a personal or business address."
    },
    "PersonalEmailAddress": {
      "type": "string",
      "description": "The customer’s personal email address."
    },
    "BusinessEmailAddress": {
      "type": "string",
      "description": "The customer’s business email address."
    },
    "Address": {
      "$ref": "#/$defs/UpdateAddress"
    },
    "ShippingAddress": {
      "$ref": "#/$defs/UpdateAddress"
    },
    "MailingAddress": {
      "$ref": "#/$defs/UpdateAddress"
    },
    "BillingAddress": {
      "$ref": "#/$defs/UpdateAddress"
    },
    "Attributes": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "A key value pair of attributes of a customer profile."
    },
    "PartyTypeString": {
      "type": "string",
      "description": "An alternative to PartyType which accepts any string as input."
    },
    "GenderString": {
      "type": "string",
      "description": "An alternative to Gender which accepts any string as input."
    },
    "ProfileType": {
      "type": "string",
      "enum": [
        "ACCOUNT_PROFILE",
        "PROFILE"
      ],
      "description": "Determines the type of the profile."
    },
    "EngagementPreferences": {
      "$ref": "#/$defs/EngagementPreferences"
    }
  },
  "required": [
    "DomainName",
    "ProfileId"
  ],
  "$defs": {
    "ContactPreference": {
      "type": "object",
      "properties": {
        "KeyName": {
          "type": "string",
          "description": "A searchable, unique identifier of a customer profile."
        },
        "KeyValue": {
          "type": "string",
          "description": "The key value used to look up profile based off the keyName."
        },
        "ProfileId": {
          "type": "string",
          "description": "The unique identifier of a customer profile."
        },
        "ContactType": {
          "type": "string",
          "enum": [
            "PhoneNumber",
            "MobilePhoneNumber",
            "HomePhoneNumber",
            "BusinessPhoneNumber",
            "EmailAddress",
            "PersonalEmailAddress",
            "BusinessEmailAddress"
          ],
          "description": "The contact type used for engagement. For example: HomePhoneNumber, PersonalEmailAddress."
        }
      }
    },
    "EngagementPreferences": {
      "type": "object",
      "properties": {
        "Phone": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ContactPreference"
          },
          "description": "A list of phone-related contact preferences"
        },
        "Email": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ContactPreference"
          },
          "description": "A list of email-related contact preferences"
        }
      }
    },
    "UpdateAddress": {
      "type": "object",
      "properties": {
        "Address1": {
          "type": "string",
          "description": "The first line of a customer address."
        },
        "Address2": {
          "type": "string",
          "description": "The second line of a customer address."
        },
        "Address3": {
          "type": "string",
          "description": "The third line of a customer address."
        },
        "Address4": {
          "type": "string",
          "description": "The fourth line of a customer address."
        },
        "City": {
          "type": "string",
          "description": "The city in which a customer lives."
        },
        "County": {
          "type": "string",
          "description": "The county in which a customer lives."
        },
        "State": {
          "type": "string",
          "description": "The state in which a customer lives."
        },
        "Province": {
          "type": "string",
          "description": "The province in which a customer lives."
        },
        "Country": {
          "type": "string",
          "description": "The country in which a customer lives."
        },
        "PostalCode": {
          "type": "string",
          "description": "The postal code of a customer address."
        }
      }
    }
  }
}