Use the Bronto API To Manage Consent Records
You can add or update consent records with the addContacts
, updateContacts
, and/or addOrUpdateContacts
calls. The criteria for whether a new consent log entry will be created varies depending on which API method you use.
addContacts
Creating a new contact with addContacts
will always create a new consent log entry. In your addContacts
call, you can set both the consentIp
and consentDate
for a new contact.
updateContacts
The updateContacts
call will only generate a new consent log entry if you
modify the contact's status or email address. Updates to contacts to perform actions like
changing a last name will not generate a new consent log entry, even if you have specified a
consentIp
. In addition, you cannot update the
consentDate
using updateContacts
and can only change the
consentIp
. The consentDate
will be the time stamp of the
change to your contact’s status.
addOrUpdateContacts
The addOrUpdateContacts
function will only generate a new consent log entry if you modify an existing contact’s email address or add a new contact. If you want to change the status of a contact, you must use updateContacts
. If you create a new contact, you can set both the consentIp
and consentDate
. When you update an existing contact, you can only change the consentIp
. The consentDate
for an existing contact is the contact’s status change time stamp.