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": "4c0749f0-3f25-402c-b468-5eaaa7b7d03e", "DefaultSelectedSegmentIds": [ "42ea4d62-61ff-40ba-9cb0-b27e51c912b7", "e06c45f0-75e7-46d9-aa5e-bb2ec9e6ab21" ] }
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>42ea4d62-61ff-40ba-9cb0-b27e51c912b7</d2p1:guid> <d2p1:guid>e06c45f0-75e7-46d9-aa5e-bb2ec9e6ab21</d2p1:guid> </DefaultSelectedSegmentIds> <MemberId>sample string 1</MemberId> <SegmentCategoryId>4c0749f0-3f25-402c-b468-5eaaa7b7d03e</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": "5ba7a572-4d31-4920-ac1e-341539baeb18", "SelectedSegments": [ "ffc7fed8-6b21-4b00-b2d3-776ee73b0833", "1ebd07bd-8286-4f91-8e27-84d9143c45bb" ], "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>5ba7a572-4d31-4920-ac1e-341539baeb18</SegmentCategoryId> <SelectedSegments xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>ffc7fed8-6b21-4b00-b2d3-776ee73b0833</d2p1:guid> <d2p1:guid>1ebd07bd-8286-4f91-8e27-84d9143c45bb</d2p1:guid> </SelectedSegments> </SelectedSegmentsResponseModel>