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": "7b36c5a0-0f44-438d-99d4-0e0114d3e3b4",
"DefaultSelectedSegmentIds": [
"e7ecca4a-3363-4fb7-a2de-f5d55c47ff6f",
"38b0ca38-118c-4da2-92a4-6ace7d5acc4d"
]
}
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>e7ecca4a-3363-4fb7-a2de-f5d55c47ff6f</d2p1:guid>
<d2p1:guid>38b0ca38-118c-4da2-92a4-6ace7d5acc4d</d2p1:guid>
</DefaultSelectedSegmentIds>
<MemberId>sample string 1</MemberId>
<SegmentCategoryId>7b36c5a0-0f44-438d-99d4-0e0114d3e3b4</SegmentCategoryId>
</SegmentListRequestModel>
application/x-www-form-urlencoded
Sample:
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": "b62e828b-7510-4a29-92d3-8535e4969048",
"SelectedSegments": [
"4e78980c-d2d5-4cfd-a9dc-74e08e93a519",
"b5ad5f4b-1cfc-4fc1-89ef-cb80b501ba77"
],
"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>b62e828b-7510-4a29-92d3-8535e4969048</SegmentCategoryId>
<SelectedSegments xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>4e78980c-d2d5-4cfd-a9dc-74e08e93a519</d2p1:guid>
<d2p1:guid>b5ad5f4b-1cfc-4fc1-89ef-cb80b501ba77</d2p1:guid>
</SelectedSegments>
</SelectedSegmentsResponseModel>