Adding contacts to lists with unique identifier columns

Hey,

I'm currently developing a solution for editing and adding new contact list entries - editing existing rows is going smoothly, but when adding new ones, the API doesn't seem to recognize the unique identifier column. As an example, when importing rows from a CSV while creating a list with a unique identifier column selected, the inin-outbound-id field in the list becomes the same as the identifier field; I can search for fields with their unique identifiers and edit them this way.

However, when appending new contacts through the API, the new rows seem to not care about the unique identifier column; the inin-outbound-id becomes a hex value instead, making my search function useless. Is there an option I'm missing with the API that allows new additions to also conform to the same scheme with the unique ID column?

I'm using the POST /api/v2/outbound/contactlists/{contactListId}/contacts endpoint.

I believe this post has a solution for your issue. Can you give this a try?

Looks like that did the trick, thanks. Another issue I had was that updating a contact uses a different key than creating one (updates require "contactId" whereas creation requires "id" in order to work properly). Adding the custom-id key in my data object + changing the request body based on endpoint helped out and it's working as intended now.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.