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": "bcc2a832-7b12-402d-83e6-d944f52b6f26", "DefaultSelectedSegmentIds": [ "4025a9f3-f426-4389-8c50-6e9c53a3d1e9", "aa0e7deb-100e-4a77-8b62-4957df3cf0c5" ] }
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>4025a9f3-f426-4389-8c50-6e9c53a3d1e9</d2p1:guid> <d2p1:guid>aa0e7deb-100e-4a77-8b62-4957df3cf0c5</d2p1:guid> </DefaultSelectedSegmentIds> <MemberId>sample string 1</MemberId> <SegmentCategoryId>bcc2a832-7b12-402d-83e6-d944f52b6f26</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": "503a9f46-d7ff-420e-be98-0dfa1a98a7d2", "SelectedSegments": [ "8109b8dc-2599-4cbe-bbd6-62559154f614", "0c6eae90-a573-430b-89b0-e6fb889eb755" ], "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>503a9f46-d7ff-420e-be98-0dfa1a98a7d2</SegmentCategoryId> <SelectedSegments xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>8109b8dc-2599-4cbe-bbd6-62559154f614</d2p1:guid> <d2p1:guid>0c6eae90-a573-430b-89b0-e6fb889eb755</d2p1:guid> </SelectedSegments> </SelectedSegmentsResponseModel>