Patch customer

PATCH {{baseUrl}}/customers/:customerId

Partially updates an existing Customer. This endpoint returns errors equivalent to the create customer endpoint.

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/customers/customer-1 Content-Type: application/json-patch+json If-Match: 4003db00-0000-0c00-0000-6038dfb20000

[ { op: replace, path: /owner/entityID, value: 0c00-0000-6038dfb20000 } ] `` This endpoint supports concurrency control through theIf-Matchheader expecting anetag` 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

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

{"authorized":[{"entityId":"in aliqua"},{"entityId":"aliq"}],"contracts":[{"type":"standard","signedDate":"1960-05-25T17:31:40.794Z","cancelledDate":"1955-10-03T11:10:20.034Z","additionalAttributes":{"amet_f9":"Ut consequat ipsum","consequat_e8":"do labore Ut"}}],"id":"78c483d7-5e6d-488b-981c-2ac4bccca2a5","owner":{"entityId":"proident enim nisi aliqua a"},"reason":null,"status":"suspended","additionalAttributes":{"eae":"enim ","non89":"dolor adipisicing ex ut","labore_477":"Ut dolor","laboris_cf8":"elit incididunt"}}