This endpoint is used to upsert a contact into the CRM, i.e., create a contact if it doesn't already exist or update it if it does. In an update, any fields omitted from the request will remain as they were. In case a new contact is created, a unique contact ID
is generated and assigned to the newly created contact. You can later use this contact ID to retrieve the details for a particular contact.
This endpoint is used to create a new contact or update an existing contact in the Mainbrainer CRM.
listId | string or null <uuid> Specify the List ID of the CRM contact list under which you wish to upsert the contact. |
contactId | integer or null <int64> ContactID is the |
mobileCountryCode | integer or null <int32> The |
mobileNumber | integer or null <int64> The |
mobileOptIn | boolean or null The Mobile Opt-In status of the contact. |
string or null The email address of the contact you wish to create/update. | |
emailOptIn | boolean or null The Email Opt-In status of the contact you wish to create/update. |
Array of objects or null (PropertyFields) MainBrainer CRM stores information about the contacts under different Property Fields. Specify the property fields along with the corresponding contact details for the contacts you wish to create/update. | |
Array |
Success
Bad Request
Unauthorized
Conflict
Client Error
Server Error
{- "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"
}
]
}
{- "status": "Success",
- "message": "string",
- "data": {
- "contactId": "string",
- "status": 0,
- "message": "string",
- "invalidPropertiesList": [
- {
- "propertyId": "8e8b8450-dc1b-4360-8109-7067337b42cb",
- "propertyName": "string",
- "propertyValue": "string"
}
], - "invalidContactIdList": [
- "string"
], - "balance": { }
}
}