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": "2a76576b-5c47-44f1-9ce0-2b984b2cc965", "DefaultSelectedSegmentIds": [ "cd15a76e-dc2f-496b-a4c4-c05f846e4e21", "41ad724c-0a52-4637-9bf1-62d1150538bd" ] }
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>cd15a76e-dc2f-496b-a4c4-c05f846e4e21</d2p1:guid> <d2p1:guid>41ad724c-0a52-4637-9bf1-62d1150538bd</d2p1:guid> </DefaultSelectedSegmentIds> <MemberId>sample string 1</MemberId> <SegmentCategoryId>2a76576b-5c47-44f1-9ce0-2b984b2cc965</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": "ac978319-4d5f-4911-8614-6da4b282d964", "SelectedSegments": [ "3bb770ad-5e42-4e8e-90bf-a88a8c2bd986", "df4d5ca9-2e11-48e2-80e3-a565fc0f742e" ], "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>ac978319-4d5f-4911-8614-6da4b282d964</SegmentCategoryId> <SelectedSegments xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>3bb770ad-5e42-4e8e-90bf-a88a8c2bd986</d2p1:guid> <d2p1:guid>df4d5ca9-2e11-48e2-80e3-a565fc0f742e</d2p1:guid> </SelectedSegments> </SelectedSegmentsResponseModel>