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": "e963cd65-66aa-4dd6-a375-1ee0ac3bdd1c", "DefaultSelectedSegmentIds": [ "4ec2b943-f6ec-4eae-842a-7c4fdad06c6f", "2f560c2c-de5d-4717-9684-8c9130e944e1" ] }
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>4ec2b943-f6ec-4eae-842a-7c4fdad06c6f</d2p1:guid> <d2p1:guid>2f560c2c-de5d-4717-9684-8c9130e944e1</d2p1:guid> </DefaultSelectedSegmentIds> <MemberId>sample string 1</MemberId> <SegmentCategoryId>e963cd65-66aa-4dd6-a375-1ee0ac3bdd1c</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": "ecc9ccc3-52bf-4245-af8a-e21924ef235d", "SelectedSegments": [ "6caae91e-2320-4516-a7ea-bcae56c2ddeb", "bb34f688-e592-4905-a82e-13dbc1d32b07" ], "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>ecc9ccc3-52bf-4245-af8a-e21924ef235d</SegmentCategoryId> <SelectedSegments xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>6caae91e-2320-4516-a7ea-bcae56c2ddeb</d2p1:guid> <d2p1:guid>bb34f688-e592-4905-a82e-13dbc1d32b07</d2p1:guid> </SelectedSegments> </SelectedSegmentsResponseModel>