# Updates The Key Party By Profile Id and Key Party Id Updates a key party on a profile by Id. Returns the updated key party data. Endpoint: PUT /compliance/kyc-protect/profiles/{profileId}/keyparties/{keyPartyId} Version: 1.10.9 Security: bearerToken ## Path parameters: - `profileId` (string, required) id of the profile - `keyPartyId` (string, required) id of the keyParty ## Request fields (application/json): - `name` (string,null) Name of the key party Maximum length is 200 characters - `firstName` (string,null) First name of the key party Valid for only entity type Individual Maximum length is 200 characters combining First name, Middle name and Last name - `middleName` (string,null) Middle name of the key party Valid for only entity type Individual Maximum length is 200 characters combining First name, Middle name and Last name - `lastName` (string,null) Last name of the key party Valid for only entity type Individual Maximum length is 200 characters combining First name, Middle name and Last name - `gender` (string,null) Gender of the key party Valid for entity type Individual (male, female) - `dateOfBirth` (string,null) Date of birth of the key party Date YYYY-MM-DD or YYYY format. Must be after 1900 and not in the future Valid for the entity type Individual - `organisationNumber` (string,null) Key party organisation number Valid for entity type Business - `activityCode` (string,null) Activity code of the key party Valid for entity type Business - `percentageOfShares` (number,null) Share percentage of the key party Valid for key party type ShareHolder - `role` (string,null) Role of the key party Valid for key party type Director - `countryCode` (string,null) Country code of the key party - `address` (object) - `address.buildingDetails` (string,null) The building details of the address being created. Must have a maximum length of 250 characters - `address.street` (string,null) The street of the address being created. Must have a maximum length of 250 characters - `address.city` (string,null) The city of the address being created. Must have a maximum length of 250 characters - `address.region` (string,null) The region of the address being created. Must have a maximum length of 250 characters - `address.postalCode` (string,null) The postal code of the address being created. Must have a maximum length of 50 characters - `address.countryCode` (string,null) The country code of the address being created. - `address.type` (string,null) Allowed values: registered, trading, other - `address.description` (string,null) The description of the address being created. Must have a maximum length of 250 characters ## Response 200 fields (application/json): - `id` (string) Id of the key party - `name` (string) Name of the key party - `firstName` (string) First name of the key party - `middleName` (string,null) Middle name of the key party - `lastName` (string) Last name of the key party - `entityType` (string) Entity type of the key party, i.e. individual, business - `keyPartyType` (string) Type of the key party, i.e. director, shareHolder, ubo - `gender` (string,null) Gender of the key party, i.e. male, female - `dateOfBirth` (string,null) Date of birth of the key party - `organisationNumber` (string,null) Key party organization number - `activityCode` (string,null) Activity code of the key party - `percentageOfShares` (number,null) Share percentage of the key party - `role` (string,null) Role of the key party - `countryCode` (string,null) Country code of the key party - `address` (object) - `address.id` (string) Id of the address - `address.buildingDetails` (string,null) Building details of the address - `address.street` (string,null) Street of the address - `address.city` (string,null) City of the address - `address.region` (string,null) Region of the address - `address.postalCode` (string,null) Postalcode of the address - `address.countryCode` (string,null) Two-letter country code ISO-3166-2 - `address.type` (string) Type of the address, i.e. registered, trading, other - `address.description` (string,null) Description of the address - `address.createdAt` (string) Address created date time - `address.createdById` (integer) Id of the user who created the Address - `address.createdBy` (string) Name of the user who created the Address - `address.modifiedAt` (string,null) Address last updated date time - `address.modifiedById` (integer,null) Id of the user who last modified the Address - `address.modifiedBy` (string,null) Name of the user who last modified the Address - `searchId` (string,null) Search Id of the key party - `createdAt` (string) Key party created time - `createdById` (integer) Id of the user who created the key party - `createdBy` (string) Name of the user who created the key party - `modifiedAt` (string,null) key party last updated time - `modifiedById` (integer,null) Id of the user who last modified the key party - `modifiedBy` (string,null) Name of the user who last modified the key party ## Response 400 fields (application/json): - `correlationId` (string) A unique ID assigned to this request. - `message` (string) - `details` (string) Provides further information on why the request was rejected ## Response 401 fields (application/json): - `error` (string) ## Response 403 fields (application/json): - `message` (string) Example: "Access forbidden" ## Response 404 fields (application/json): - `correlationId` (string) A unique ID assigned to this request. - `message` (string) - `details` (string) Provides further information on why the request was rejected