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"=>"velit Ut", "lastName"=>"anim ut enim", "email"=>"pariatur in", "phone"=>"aliqua aute dolor nulla", "extRef"=>"aliqua fugiat ex id", "embeddedData"=>{"nostrudac"=>true}, "language"=>"dolor laboris", "unsubscribed"=>false}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"result":{"id":"CID_012345678901234","contactLookupId":"CGC_012345678901234"},"meta":{"httpStatus":"Lore","requestId":"reprehenderit","notice":"esse non"}}