Aggiungi contatti alle liste contatti
POST/api/partner-gateway/v1/contacts/list/contacts
Creates associations between contacts and contact lists, effectively adding contacts as members of the specified lists. The request body must include listIds (the target contact lists) and either specific contactIds or allContacts=true. When allContacts is false, provide contactIds as a list of contact IDs to add to the specified lists. When allContacts is true, all contacts in your account are added to the specified lists, except those whose IDs are in excludeIdsAllContacts. This is a bulk operation: you can add multiple contacts to multiple lists in a single call. If a contact is already a member of a given list, the existing association is preserved (no duplicate is created). After adding contacts to lists, the updated lists can be used as campaign audiences by including them in a campaign's contactListIds. Returns 201 with the IDs of the created associations. Returns 400 if listIds is empty or the request body is otherwise invalid. Returns 500 if an unexpected server error occurs.
Richiesta
Risposte
- 201
- 400
- 500
Associazioni create con successo
Corpo della richiesta non valido
Errore interno del server