Create Export Contact Segment Memberships

POST {{baseUrl}}/directories/:directoryId/export-contact-segment-memberships

Exports the segment membership of each contact whose segment membership status has changed since the provided lastUpdatedDate parameter. Check the progress of the export with Get Contact Segment Memberships Export Progress. Once the export status is COMPLETED, the resulting CSV file can be downloaded using Get Contact Segment Memberships Export File.

This API call is only available to XM Directory users.

Private Preview Functionality

This API is not yet generally available. It is available as part of Early Access to receive feedback. Be aware that there may be significant changes to this API with short notice until the time that the API is made Generally Available.

Request Body

{"format"=>"csv", "lastUpdatedDate"=>"<dateTime>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;result&quot;:{&quot;progressId&quot;:&quot;\u003cstring\u003e&quot;,&quot;status&quot;:&quot;CREATED&quot;},&quot;meta&quot;:{&quot;httpStatus&quot;:&quot;\u003cstring\u003e&quot;,&quot;requestId&quot;:&quot;\u003cstring\u003e&quot;,&quot;notice&quot;:&quot;\u003cstring\u003e&quot;}}