This endpoint is particularly useful for periodically syncing data from another database to the Mainbrainer CRM
. While we support batch sizes of up to 1000 contacts per request, we recommend that you limit the batch size to 100 contacts or fewer per request to maximize the performance. and It can take a few minutes for the changes/updates to be applied to the records because the changes made through this endpoint are processed asynchronously.
This endpoint upserts (insert/ update) a batch of contacts to the MainBrainer CRM.
In an update, any fields omitted from the request will remain as they were.
listId | string or null <uuid> Specify the List ID of the CRM contact list under which you wish to upsert the contact. | ||||||||||||||||||
required | Array of objects (CreateUpdateContacts) | ||||||||||||||||||
Array
| |||||||||||||||||||
webHookUrl | string or null The webhook URL where you want to receive updates for the contacts being created. For each batch, the update will specify the following: |
Success
Bad Request
Unauthorized
Not Acceptable
Conflict
Client Error
Server Error
{- "listId": "9fc6ad7d-902a-4834-b161-a4911b883d44",
- "createUpdateContacts": [
- {
- "listId": "9fc6ad7d-902a-4834-b161-a4911b883d44",
- "contactId": 0,
- "mobileCountryCode": 0,
- "mobileNumber": 0,
- "mobileOptIn": true,
- "email": "string",
- "emailOptIn": true,
- "propertyFields": [
- {
- "propertyId": "8e8b8450-dc1b-4360-8109-7067337b42cb",
- "propertyName": "string",
- "propertyValue": "string"
}
]
}
], - "webHookUrl": "string"
}
{- "status": "Success",
- "message": "string",
- "data": {
- "batchId": "string",
- "processed": "string",
- "contactId": "string",
- "status": 0,
- "message": "string",
- "invalidPropertiesList": [
- {
- "propertyId": "8e8b8450-dc1b-4360-8109-7067337b42cb",
- "propertyName": "string",
- "propertyValue": "string"
}
], - "invalidContactIdList": [
- "string"
], - "balance": { }
}
}