POST api/Segment/GetSelectedSegmentsForMember
Request Information
URI Parameters
None.
Body Parameters
SegmentListRequestModelName | Description | Type | Additional information |
---|---|---|---|
MemberId | string |
None. |
|
SegmentCategoryId | globally unique identifier |
None. |
|
DefaultSelectedSegmentIds | Collection of globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{ "MemberId": "sample string 1", "SegmentCategoryId": "3c7da841-b27a-43a1-9711-8c955fb8d574", "DefaultSelectedSegmentIds": [ "cfce8f89-3bbc-43d4-929a-743b8d8d09b2", "aaca1a8a-a9a1-4cb4-8dfc-87d45fa06e45" ] }
application/xml, text/xml
Sample:
<SegmentListRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bond.Core.API.Models.Request"> <DefaultSelectedSegmentIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>cfce8f89-3bbc-43d4-929a-743b8d8d09b2</d2p1:guid> <d2p1:guid>aaca1a8a-a9a1-4cb4-8dfc-87d45fa06e45</d2p1:guid> </DefaultSelectedSegmentIds> <MemberId>sample string 1</MemberId> <SegmentCategoryId>3c7da841-b27a-43a1-9711-8c955fb8d574</SegmentCategoryId> </SegmentListRequestModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
SelectedSegmentsResponseModelName | Description | Type | Additional information |
---|---|---|---|
MemberId | string |
None. |
|
SegmentCategoryId | globally unique identifier |
None. |
|
SelectedSegments | Collection of globally unique identifier |
None. |
|
Result | ResponseResult |
None. |
Response Formats
application/json, text/json
Sample:
{ "MemberId": "sample string 1", "SegmentCategoryId": "d5d7da1c-309e-4ab2-abfa-ddf639b89a2e", "SelectedSegments": [ "3f722e54-7f8f-4090-93a9-b2056c46f89f", "213341e7-c9cb-4067-b11d-343a937fc736" ], "Result": { "Success": true, "Message": "sample string 2", "Errors": [ { "Message": "sample string 1" }, { "Message": "sample string 1" } ] } }
application/xml, text/xml
Sample:
<SelectedSegmentsResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bond.Core.API.Models.Response"> <Result> <Errors> <ErrorMessage> <Message>sample string 1</Message> </ErrorMessage> <ErrorMessage> <Message>sample string 1</Message> </ErrorMessage> </Errors> <Message>sample string 2</Message> <Success>true</Success> </Result> <MemberId>sample string 1</MemberId> <SegmentCategoryId>d5d7da1c-309e-4ab2-abfa-ddf639b89a2e</SegmentCategoryId> <SelectedSegments xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>3f722e54-7f8f-4090-93a9-b2056c46f89f</d2p1:guid> <d2p1:guid>213341e7-c9cb-4067-b11d-343a937fc736</d2p1:guid> </SelectedSegments> </SelectedSegmentsResponseModel>