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": "552063b7-5ca1-41d5-b521-b79c6fa06c81", "DefaultSelectedSegmentIds": [ "56817b00-3f1e-4a47-9d74-69058707605a", "7509f459-61cb-479f-b001-835ff3898b7c" ] }
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>56817b00-3f1e-4a47-9d74-69058707605a</d2p1:guid> <d2p1:guid>7509f459-61cb-479f-b001-835ff3898b7c</d2p1:guid> </DefaultSelectedSegmentIds> <MemberId>sample string 1</MemberId> <SegmentCategoryId>552063b7-5ca1-41d5-b521-b79c6fa06c81</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": "7365bac6-e1a8-403d-91b2-7220c6118323", "SelectedSegments": [ "bfcab316-9410-4b6c-a96a-1fda927efd1f", "82260ad8-fdaa-4d7c-bb87-49ef63b11c9e" ], "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>7365bac6-e1a8-403d-91b2-7220c6118323</SegmentCategoryId> <SelectedSegments xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>bfcab316-9410-4b6c-a96a-1fda927efd1f</d2p1:guid> <d2p1:guid>82260ad8-fdaa-4d7c-bb87-49ef63b11c9e</d2p1:guid> </SelectedSegments> </SelectedSegmentsResponseModel>