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": "dd1e2956-7296-492f-9fe6-4ad62f99b9b0", "DefaultSelectedSegmentIds": [ "375bdd80-31cf-4eb2-81c4-a13cca97a6b0", "073a588b-5337-4588-9864-4858e29afd68" ] }
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>375bdd80-31cf-4eb2-81c4-a13cca97a6b0</d2p1:guid> <d2p1:guid>073a588b-5337-4588-9864-4858e29afd68</d2p1:guid> </DefaultSelectedSegmentIds> <MemberId>sample string 1</MemberId> <SegmentCategoryId>dd1e2956-7296-492f-9fe6-4ad62f99b9b0</SegmentCategoryId> </SegmentListRequestModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
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": "f4426a53-3674-4a67-8585-ac2175e99237", "SelectedSegments": [ "3ae20f0f-c478-486f-8d29-4563b4b90dd0", "200e7b5a-b81f-4ed9-9669-5782f8ea79c9" ], "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>f4426a53-3674-4a67-8585-ac2175e99237</SegmentCategoryId> <SelectedSegments xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>3ae20f0f-c478-486f-8d29-4563b4b90dd0</d2p1:guid> <d2p1:guid>200e7b5a-b81f-4ed9-9669-5782f8ea79c9</d2p1:guid> </SelectedSegments> </SelectedSegmentsResponseModel>