Update legal person

PUT {{baseUrl}}/entities/legal-persons/:entityId

Fully updates an existing legal person.

Expects same input as the POST create legal person endpoint.

This endpoint supports concurrency control through the If-Match header expecting an Etag value returned by the GET endpoint.

Allowed roles : EDITOR

Request Body

{"id"=>"78c483d7-5e6d-488b-981c-2ac4bccca2a5", "name"=>"Tangany GmbH", "legalForm"=>"GmbH", "legalAddress"=>{"country"=>"GB", "city"=>"SOUTHAMPTON", "postcode"=>"SO53 5PD", "streetName"=>"71 Cherry Court", "streetNumber"=>"A. 813"}, "related"=>[{"entityId"=>"sint consequat c", "isFictitiousBeneficialOwner"=>true, "isUltimateBeneficialOwner"=>false, "position"=>"dolore exercitation Duis non", "sharePercentage"=>"50"}], "commercialRegister"=>"Amtsgericht Munich HRB246113", "leiCode"=>"529900WKXS5ZPJY9W498", "taxId"=>"894894", "vatId"=>"DE815805490", "isinCode"=>"DE000TANG015", "legalJurisdiction"=>"DE", "postalAddress"=>{"country"=>"GB", "city"=>"SOUTHAMPTON", "postcode"=>"SO53 5PD", "streetName"=>"71 Cherry Court", "streetNumber"=>"A. 813"}, "kyc"=>{"isCreAvailable"=>false, "businessDescription"=>"crypto custody"}}

HEADERS

KeyDatatypeRequiredDescription
tangany-versionnumber(Required) API version
If-Matchstring(Optional header) Avoid mid-air collisions by matching a resources etag
Content-Typestring
Acceptstring
_tangany-datastring

RESPONSES

status: OK

{"id":"78c483d7-5e6d-488b-981c-2ac4bccca2a5","name":"Tangany GmbH","legalForm":"GmbH","legalAddress":{"country":"GB","city":"SOUTHAMPTON","postcode":"SO53 5PD","streetName":"71 Cherry Court","streetNumber":"A. 813"},"related":[{"entityId":"sint consequat c","isFictitiousBeneficialOwner":true,"isUltimateBeneficialOwner":false,"position":"dolore exercitation Duis non","sharePercentage":"50"}],"commercialRegister":"Amtsgericht Munich HRB246113","leiCode":"529900WKXS5ZPJY9W498","taxId":"894894","vatId":"DE815805490","isinCode":"DE000TANG015","legalJurisdiction":"DE","postalAddress":{"country":"GB","city":"SOUTHAMPTON","postcode":"SO53 5PD","streetName":"71 Cherry Court","streetNumber":"A. 813"},"kyc":{"isCreAvailable":false,"businessDescription":"crypto custody"}}