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": "3821dda6-0f7a-484d-a86d-cccf50168b02", "DefaultSelectedSegmentIds": [ "04132136-4f0b-48a5-9614-75ea97c3d39f", "9b96dbf7-76ec-4158-b6a4-7afa9d60bfd8" ] }
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>04132136-4f0b-48a5-9614-75ea97c3d39f</d2p1:guid> <d2p1:guid>9b96dbf7-76ec-4158-b6a4-7afa9d60bfd8</d2p1:guid> </DefaultSelectedSegmentIds> <MemberId>sample string 1</MemberId> <SegmentCategoryId>3821dda6-0f7a-484d-a86d-cccf50168b02</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": "f023bad3-07b7-4d94-9419-e88e5e2b5125", "SelectedSegments": [ "2d0edc7f-cd68-47f4-9861-e3855f7a7498", "5e0e2df1-c32a-429d-9d7e-7dd28eb89781" ], "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>f023bad3-07b7-4d94-9419-e88e5e2b5125</SegmentCategoryId> <SelectedSegments xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>2d0edc7f-cd68-47f4-9861-e3855f7a7498</d2p1:guid> <d2p1:guid>5e0e2df1-c32a-429d-9d7e-7dd28eb89781</d2p1:guid> </SelectedSegments> </SelectedSegmentsResponseModel>