Create Contact In Mailing List
POST {{baseUrl}}/directories/:directoryId/mailinglists/:mailingListId/contacts
Create a contact in a specified mailing list. <!--From Readme--> <!-- theme: info -->
Performance and Operational Comments
It is recommended to run only one import at a time. There is no size limit on the data. It will not speed up imports to a single mailinglist by sending more than one request as the batches are processed sequentially.
This API call is only available to XM Directory users.
Deduplication
If deduplication is on and a contact exists with the same deduplication criteria then it will modify the original contact's information. You can find more information on the support page for deduplication.
Request Body
{"firstName"=>"<string>", "lastName"=>"<string>", "email"=>"<string>", "phone"=>"<string>", "extRef"=>"<string>", "embeddedData"=>{"esse_6"=>96863770.88921571}, "language"=>"<string>", "unsubscribed"=>"<boolean>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"result":{"id":"\u003cstring\u003e","contactLookupId":"\u003cstring\u003e"},"meta":{"httpStatus":"\u003cstring\u003e","requestId":"\u003cstring\u003e","notice":"\u003cstring\u003e"}}