Between 8:00 - 9:00 am ET on 10/25 we need to take our site down to make updates. We recommend logging out before 8:00am ET and not using your account during this time. Thank you for your patience while we make these important updates.

Adding new and existing contacts to a list via API

Participant

Adding new and existing contacts to a list via API

Hi everyone,

 

I've been looking for a solution regarding my question in the subject. There has to be a better way than doing an api call to check for existing users, do a put to update every single field (even though I only want to change just 1) or a push to create a new user.

 

Is there a way to send a contact id and add it to a list simply? 

 

thank you

1 REPLY 1
Moderator

Hi @SakoK,

 

Our API use to clear out all of the data that was not submitted in fact our documentation states that is what it does. I just tested this and it appears that has changed. I will dig back through our updates to see when this changed.

 

Given that change it is still a good practice to GET the contact before you do a PUT and update the listIDs because there are some circumstances that can cause the contactID to change. It is considered a bad practice to store the contactID and use that to submit changes without first GETting the current data.


Regards,
Jimmy D.
Tier II API Support Engineer
Developer Portal

View API documentation, code samples, get your API key.

Visit Page