POST api/Segment/GetSelectedSegmentsForMember
Request Information
URI Parameters
None.
Body Parameters
SegmentListRequestModel| Name | 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": "c516f579-fef3-4d60-b133-67612cb003db",
"DefaultSelectedSegmentIds": [
"4068fd51-9125-4dac-aebe-f0f139578580",
"19113bdf-7ffa-45fa-8045-2d90016d691f"
]
}
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>4068fd51-9125-4dac-aebe-f0f139578580</d2p1:guid>
<d2p1:guid>19113bdf-7ffa-45fa-8045-2d90016d691f</d2p1:guid>
</DefaultSelectedSegmentIds>
<MemberId>sample string 1</MemberId>
<SegmentCategoryId>c516f579-fef3-4d60-b133-67612cb003db</SegmentCategoryId>
</SegmentListRequestModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
SelectedSegmentsResponseModel| Name | 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": "f22e4b1e-ae32-4315-b458-63692d4cb0e8",
"SelectedSegments": [
"b53167f3-3697-40ce-a07b-f58045ddcde3",
"66221c10-6bbb-4b33-98ec-c2c2c05be95b"
],
"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>f22e4b1e-ae32-4315-b458-63692d4cb0e8</SegmentCategoryId>
<SelectedSegments xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>b53167f3-3697-40ce-a07b-f58045ddcde3</d2p1:guid>
<d2p1:guid>66221c10-6bbb-4b33-98ec-c2c2c05be95b</d2p1:guid>
</SelectedSegments>
</SelectedSegmentsResponseModel>