Add contacts to contact lists
POST/api/partner-gateway/contacts/list/contacts
Adds contacts to contact lists in bulk: several contacts to several lists in one call.
- Always required:
listIds, the lists to add the contacts to. - Specific contacts: send
contactIds, withallContactsfalse. - Everyone: send
allContactstrue. All the contacts of your account are added to the lists, except those inexcludeIdsAllContacts. - No duplicates: a contact that is already in a list keeps its membership.
- The response holds contact IDs, not membership IDs: one entry for each new membership, so a contact added to two lists appears twice. Contacts that were already in a list are left out, and the array is empty when
allContactsis true.
Request
Responses
- 201
- 400
- 401
- 404
- 500
IDs of the contacts newly added, one entry for each new membership.
The body is missing or invalid, listIds is empty, or allContacts is false and contactIds is not provided.
The API key is missing, invalid, or lacks the CONTACTS operation.
One of the listIds is not a contact list of your account or, when allContacts is false, one of the contactIds is not a contact of your account or is a test contact. Nothing is added.
Unexpected server error.