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 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
{"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"}}