BulkUpdateClientsDto
webhookUrlstring
Optional webhook URL to receive notification when operation completes. Auth headers: append #headers=Authorization:Bearer%20token
Example:
https://example.com/webhook#headers=Authorization:Bearer%20tokenforceSyncboolean
Execute synchronously (max 1000 items). If true and items >= 1000, request is rejected.
Default value:
falseitems object[]required
Array of clients to update
Possible values: >= 1, <= 5000
Array [
idstringrequired
Client ID
Example:
507f1f77bcf86cd799439011firstNamestring
Possible values: >= 2 characters and <= 100 characters
lastNamestring
Possible values: >= 2 characters and <= 100 characters
emailstring<email>
phoneNumberstring
barcodestring
renewalDatestring<date-time>
birthDatestring<date-time>
admissionDatestring<date-time>
clientTypestring
gainnumber
companyNamestring
sourcestring
Possible values: [CRM, INTERNAL, EXTERNAL]
sendCardboolean
]
BulkUpdateClientsDto
{
"webhookUrl": "https://example.com/webhook#headers=Authorization:Bearer%20token",
"forceSync": false,
"items": [
{
"id": "507f1f77bcf86cd799439011",
"firstName": "string",
"lastName": "string",
"email": "user@example.com",
"phoneNumber": "string",
"barcode": "string",
"renewalDate": "2024-07-29T15:51:28.071Z",
"birthDate": "2024-07-29T15:51:28.071Z",
"admissionDate": "2024-07-29T15:51:28.071Z",
"clientType": "string",
"gain": 0,
"companyName": "string",
"source": "CRM",
"sendCard": true
}
]
}