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": "45996b72-3c1b-4644-9ebf-a3c0030289a3",
"DefaultSelectedSegmentIds": [
"fa455652-b52f-4d85-8fa3-0e9f4f84d8a1",
"34d9a32c-201a-487d-9c3e-7b2609e3e3fd"
]
}
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>fa455652-b52f-4d85-8fa3-0e9f4f84d8a1</d2p1:guid>
<d2p1:guid>34d9a32c-201a-487d-9c3e-7b2609e3e3fd</d2p1:guid>
</DefaultSelectedSegmentIds>
<MemberId>sample string 1</MemberId>
<SegmentCategoryId>45996b72-3c1b-4644-9ebf-a3c0030289a3</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": "a607e603-17d6-42ef-8d41-4e962b5bc051",
"SelectedSegments": [
"97a9b043-2062-4e5b-a3eb-42a0d62d6aa2",
"31ef1829-a32f-4ddf-923c-61fd1f624f65"
],
"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>a607e603-17d6-42ef-8d41-4e962b5bc051</SegmentCategoryId>
<SelectedSegments xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>97a9b043-2062-4e5b-a3eb-42a0d62d6aa2</d2p1:guid>
<d2p1:guid>31ef1829-a32f-4ddf-923c-61fd1f624f65</d2p1:guid>
</SelectedSegments>
</SelectedSegmentsResponseModel>