ContactRequestDTO
Write-variant of ContactDTO — used inside a LeadCreateRequestDTO contacts[]
item to create or update a single contact.
Create vs. update. id is the discriminator: omit it to create a new contact,
provide it to update the existing one.
Tri-state per key. Unlike the read-variant ContactDTO, no property is required
here — every key is interpreted by its presence: omitted → the attribute is left
unchanged; present with a value → updated; explicit null → cleared. (When
creating a contact, name and phones are effectively required.)
The fields[] items follow the same tri-state rules — see FieldValueRequestDTO.
Contact ID. Omit to create a new contact, provide to update an existing one.
1001Contact name. Required when creating.
John Doefields object[]nullable
Contact custom field values.
CRM field identifier this value belongs to. Always required.
1Simple value (as text)
VIPMultiple values (for multi-select fields).
["VIP","New"]Field value type enum.
Possible values: [STREET, DISTRICT, DEFAULT]
DEFAULTDEFAULTField type (lowercased, e.g. text, select)
selectWhich entity a field/value belongs to.
LED— the leadCONTACT— the contact
Possible values: [LED, CONTACT]
LEDGeo coordinate: longitude (for location fields)
69.2401Geo coordinate: latitude (for location fields)
41.2995Value for NUMBER fields. Required (directly or via the value fallback) when the field's type is NUMBER.
1500.5Currency ID. Required when the NUMBER field's format is CURRENCY.
24Contact type enum.
Possible values: [SIMPLE, TELEGRAM, INSTAGRAM, WEBSITE, FACEBOOK, OTHER, CALL_PBX, MARKETPLACE, GOOGLE_SHEETS, WEB_FORM, WAZZUP, AMO_CRM, TELEGRAM_BUSINESS]
SIMPLETELEGRAMAccount ID (if available)
acc123Username
johndoePhone numbers. Required (non-empty) when creating.
["+998901234567"]Receiver ID (if available)
rec123{
"id": 1001,
"name": "John Doe",
"fields": [
{
"id": 1,
"value": "VIP",
"valueList": [
"VIP",
"New"
],
"valueType": "DEFAULT",
"type": "select",
"infoType": "LED",
"longitude": 69.2401,
"latitude": 41.2995,
"number": 1500.5,
"currencyId": 24
}
],
"type": "TELEGRAM",
"accountId": "acc123",
"username": "johndoe",
"phones": [
"+998901234567"
],
"receiverId": "rec123"
}