POST {clientId}/export/Segment/{segmentName}
Initiate request by specifying a Segment name. You can optionally pass lastdatetime to retrieve preference updates for a specific period.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
clientId |
Possiblenow ClientId |
string |
Required |
segmentName |
Name of the MyPreferences segment to export |
string |
Required |
Body Parameters
The LastDateTime support values up to the millisecond. The millisecond value will always be rounded to the nearest boundary to avoid records being skipped. For example, 000 through 002 becomes 003, 003 through 006 becomes 007, and 007 through 009 becomes 000 of the next higher value.
SegmentRequestInfoName | Description | Type | Additional information |
---|---|---|---|
CallbackURL |
Optional Callback URL that will be called when the export is complete |
string |
None. |
LastDateTime |
Optional starting datetime that preference updates will be retrieved from The LastDateTime support values up to the millisecond. The millisecond value will always be rounded to the nearest boundary to avoid records being skipped. For example, 000 through 002 becomes 003, 003 through 006 becomes 007, and 007 through 009 becomes 000 of the next higher value. |
string |
None. |
Request Formats
application/json, text/json
{ "CallbackURL": "sample string 1", "LastDateTime": "sample string 2" }
application/xml, text/xml
<SegmentRequestInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MyPreferences.Async.Models"> <CallbackURL>sample string 1</CallbackURL> <LastDateTime>sample string 2</LastDateTime> </SegmentRequestInfo>
application/x-www-form-urlencoded
Sample not available. See https://www.w3.org/TR/html401/interact/forms.html#h-17.13.4 for details.
Response Information
Resource Description
AsyncTokenName | Description | Type | Additional information |
---|---|---|---|
AccessToken |
Unique token used to check status and pull data for async calls |
integer |
None. |
Response Formats
application/json, text/json
{ "AccessToken": 1 }
application/xml, text/xml
<AsyncToken xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MyPreferences.Async.Models"> <AccessToken>1</AccessToken> </AsyncToken>