/bff/contact/email-upsert
Idempotent on (contact, lower(email)). When the same email already exists on the contact, the row is updated; otherwise a new row is inserted. Position auto-fills as "max + 1" when omitted.
ContactpostBffContactEmail-upsert
Parameters
8 body
Body · 8
customerIdstringRequiredContact external ID.
idnumberExisting row id — provide to update; omit to insert (or upsert by email).
emailstringRequiredEmail address.
labelstringRole label.
sendInvoicesbooleanReceive invoices? Default true.
sendRemindersbooleanReceive overdue reminders? Default true.
sendMarketingbooleanReceive marketing? Default false.
positionnumberDisplay order; auto-assigned to "max + 1" when omitted.
Request
POST /bff/contact/email-upsert
curl -X POST "https://api.bizkithub.com/bff/contact/email-upsert" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"customerId": "abc123def456ghij",
"id": 0,
"email": "accountant@client.cz",
"label": "Účetní",
"sendInvoices": false,
"sendReminders": false,
"sendMarketing": false,
"position": 0
}'Response
JSON payload
{
"id": 0,
"inserted": false
}All response codes
1 status code documented
Need an API key?
All BizKitHub API endpoints require authentication via API key.