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": "b0ad4fa1-676f-40ae-b844-0d899e722559", "DefaultSelectedSegmentIds": [ "4d3255cc-6a9c-4ec1-9f05-42ca58dde91b", "30b36aa8-ec4d-4e8a-ab45-59d3d2ac4c08" ] }
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>4d3255cc-6a9c-4ec1-9f05-42ca58dde91b</d2p1:guid> <d2p1:guid>30b36aa8-ec4d-4e8a-ab45-59d3d2ac4c08</d2p1:guid> </DefaultSelectedSegmentIds> <MemberId>sample string 1</MemberId> <SegmentCategoryId>b0ad4fa1-676f-40ae-b844-0d899e722559</SegmentCategoryId> </SegmentListRequestModel>
application/x-www-form-urlencoded
Sample:
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": "44dacf54-9c13-40d6-96ea-542bae873ea4", "SelectedSegments": [ "54eb1016-35d2-4c95-ad60-997df37d69f3", "5862510b-9cd2-4842-a6ef-38ec520e96ed" ], "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>44dacf54-9c13-40d6-96ea-542bae873ea4</SegmentCategoryId> <SelectedSegments xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>54eb1016-35d2-4c95-ad60-997df37d69f3</d2p1:guid> <d2p1:guid>5862510b-9cd2-4842-a6ef-38ec520e96ed</d2p1:guid> </SelectedSegments> </SelectedSegmentsResponseModel>