Patch legal person
PATCH {{baseUrl}}/entities/legal-persons/:entityId
Partially updates an existing legal person.
This endpoint expects updates in the form of a subset of the JSON Patch RFC6902 standard.
Example: Updating contract information
```http-client
PATCH https://api.tangany.com/customers/entities/legal-persons/legal person-1
Content-Type: application/json-patch+json
If-Match: 4003db00-0000-0c00-0000-6038dfb20000
[
{
op
: replace
,
path
: /lastName
,
value
: Smith
},
{
op:
replace,
path:
/address,
value: {
country:
DE,
city:
Berlin,
postcode:
10115,
streetName:
Mainzer Straße,
streetNumber:
36"
}
}
]
``
This endpoint supports concurrency control through the
If-Matchheader expecting an
etag` value returned by the GET endpoint or RFC6902 JSON test operations.
Allowed roles : EDITOR
Request Body
{"0"=>{"op"=>"replace", "path"=>"/contract/isSigned", "value"=>true}, "1"=>{"op"=>"replace", "path"=>"/contract/isSigned", "value"=>true}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
tangany-version | number | (Required) API version | |
If-Match | string | (Optional header) Avoid mid-air collisions by matching a resources etag | |
Content-Type | string | ||
Accept | string | ||
_tangany-data | string |
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"}}