Add or Update Contact
Add or Update Contact
POST
[PlatformAddress]/api/1.0/contact?action=addOrUpdateContactundefined
Add or update contact details
Request Body
Example Request: Adding a contact
Example Request: Updating a contact
Note : the groups will be set to only group 10, destroying the existing value
This call takes values for a contact, and either
Updates the values for that contact (after you have provided an id in the parameters), or
Adds the contact to the system (if the id parameter is missing)
The result of this call will contain the status of the result (either true or false) and the contact identifier of the updated or newly created contact.
The properties of the contact currently supported are:
firstName
lastName
email
phone
groups
This is an array of group objects with the ‘groupId’ key.
customFields
This is an array of custom field objects with ‘fieldId’ and ‘value’ keys
Companies
This is an array of companies Ids
status
The current status of the email susbcription in contact. The value of this field will be one of the following current status
smsStatus
The current status of the sms susbcription in contact. The value of this field will be one of the following current status
Returns
Email Status
The status is the record of whether the contact has opted in to email communication.
Sms status
The sms status is the record of whether the contact has opted in to sms communication.
Last updated