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": "928385d8-0f27-4bbc-adb5-a75b1b531f52",
"DefaultSelectedSegmentIds": [
"4b54875c-8411-42d7-91b8-43bd9153cbd0",
"4f0da272-4190-4dd1-af48-a4ea39aac0ed"
]
}
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>4b54875c-8411-42d7-91b8-43bd9153cbd0</d2p1:guid>
<d2p1:guid>4f0da272-4190-4dd1-af48-a4ea39aac0ed</d2p1:guid>
</DefaultSelectedSegmentIds>
<MemberId>sample string 1</MemberId>
<SegmentCategoryId>928385d8-0f27-4bbc-adb5-a75b1b531f52</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": "d8ce1f0c-72be-4df2-b316-34d3430e2972",
"SelectedSegments": [
"58bb7d09-e72e-4330-923b-0836321b3d48",
"91d85994-a766-4721-89a7-c2bc16190978"
],
"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>d8ce1f0c-72be-4df2-b316-34d3430e2972</SegmentCategoryId>
<SelectedSegments xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>58bb7d09-e72e-4330-923b-0836321b3d48</d2p1:guid>
<d2p1:guid>91d85994-a766-4721-89a7-c2bc16190978</d2p1:guid>
</SelectedSegments>
</SelectedSegmentsResponseModel>