Update account

PATCH {{baseUrl}}/accounts/:accountId

Partially updates an existing account.

This endpoint expects updates in the form of a subset of the JSON Patch RFC6902 standard.

Example: Updating label and attributes ```http-client PATCH https://api.tangany.com/settlement/accounts/my-account Content-Type: application/json-patch+json

[ { op: replace, path: /label, value: updated label }, { op: add, path: /additionalAttributes/isInternal, value: true } ] ```

This endpoint supports concurrency control through RFC6902 JSON test operations. The Content-Type header must be set to application/json-patch+json

Allowed roles: EDITOR

Request Body

{"0"=>{"op"=>"replace", "path"=>"/label", "value"=>"Updated account label"}}

HEADERS

KeyDatatypeRequiredDescription
tangany-versionnumber(Required) API version
Content-Typestring
Acceptstring

RESPONSES

status: OK

{"id":"795ea856-a6a1-496f-86e1-f1376efec2c2","label":"Max Müller Account","type":"customer","customerId":"max-mueller","blockchain":{"addresses":["ex irure","aliquip et sed"],"synchronization":"full"},"additionalAttributes":{}}