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": "ba85e6cd-7973-4df9-b7a0-e24c8bb8ced1",
"DefaultSelectedSegmentIds": [
"dbfd1623-07aa-402c-8f93-b2c5e0f441f6",
"8c38570f-dc2b-4cae-ab64-46ac545d0c92"
]
}
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>dbfd1623-07aa-402c-8f93-b2c5e0f441f6</d2p1:guid>
<d2p1:guid>8c38570f-dc2b-4cae-ab64-46ac545d0c92</d2p1:guid>
</DefaultSelectedSegmentIds>
<MemberId>sample string 1</MemberId>
<SegmentCategoryId>ba85e6cd-7973-4df9-b7a0-e24c8bb8ced1</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": "7c735823-abe3-4b11-bda5-d698e60a9f7a",
"SelectedSegments": [
"aa16e585-8e00-40d1-aef2-f1f371cfc8c5",
"47a4fedf-7208-4172-89c3-e1681b7eadd2"
],
"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>7c735823-abe3-4b11-bda5-d698e60a9f7a</SegmentCategoryId>
<SelectedSegments xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>aa16e585-8e00-40d1-aef2-f1f371cfc8c5</d2p1:guid>
<d2p1:guid>47a4fedf-7208-4172-89c3-e1681b7eadd2</d2p1:guid>
</SelectedSegments>
</SelectedSegmentsResponseModel>