v1
latestOpenAPI 3.1.12026-07-124448163.2 KBadmin.clients
Update a client
Updates a client by ID.
patch/admin/clients/{id}
Path parameters
idstring cuid required
The ID of the item
Example:cmf41ajzv003706un4i99q19z
Request body
Example request
{
"name": "Muster GmbH",
"type": "legal_person",
"customId": "ABC123",
"legalName": "Muster GmbH",
"address": {
"line1": "Musterstraße 1",
"line2": "12345 Musterstadt",
"city": "Musterstadt",
"postalCode": "12345",
"countryCode": "DE"
}
}Response
Client updated successfully
Example response
{
"id": "cmf41ajzv003706un4i99q19z",
"name": "Muster GmbH",
"slug": "muster-gmbh",
"type": "legal_person",
"customId": "ABC123",
"legalName": "Muster GmbH",
"archivedAt": "2021-01-01T00:00:00Z",
"datevClientId": "ABC123",
"createdAt": "2021-01-01T00:00:00Z",
"updatedAt": "2021-01-01T00:00:00Z"
}