POST api/Segment/GetSegments
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": "3faeafdb-618d-437e-be6b-f56ef18c9df2",
"DefaultSelectedSegmentIds": [
"5f19ee35-0ad6-484b-ac53-9e6d47fe5e96",
"d5aaf0c7-36ec-4ac4-bf82-f652782bc59a"
]
}
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>5f19ee35-0ad6-484b-ac53-9e6d47fe5e96</d2p1:guid>
<d2p1:guid>d5aaf0c7-36ec-4ac4-bf82-f652782bc59a</d2p1:guid>
</DefaultSelectedSegmentIds>
<MemberId>sample string 1</MemberId>
<SegmentCategoryId>3faeafdb-618d-437e-be6b-f56ef18c9df2</SegmentCategoryId>
</SegmentListRequestModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
SegmentListResponseModel| Name | Description | Type | Additional information |
|---|---|---|---|
| MemberId | string |
None. |
|
| SegmentCategoryId | globally unique identifier |
None. |
|
| SegmentsCount | integer |
None. |
|
| SegmentsSelectedCount | integer |
None. |
|
| Segments | Collection of SegmentDetail |
None. |
|
| Result | ResponseResult |
None. |
Response Formats
application/json, text/json
Sample:
{
"MemberId": "sample string 1",
"SegmentCategoryId": "ef409a5e-3b89-4e0c-bc55-f5ee9b9e03a7",
"SegmentsCount": 2,
"SegmentsSelectedCount": 3,
"Segments": [
{
"Id": "981e4ab0-fea2-4a13-b230-5e737eba638b",
"Name": "sample string 2",
"IsSelected": true
},
{
"Id": "981e4ab0-fea2-4a13-b230-5e737eba638b",
"Name": "sample string 2",
"IsSelected": true
}
],
"Result": {
"Success": true,
"Message": "sample string 2",
"Errors": [
{
"Message": "sample string 1"
},
{
"Message": "sample string 1"
}
]
}
}
application/xml, text/xml
Sample:
<SegmentListResponseModel 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>ef409a5e-3b89-4e0c-bc55-f5ee9b9e03a7</SegmentCategoryId>
<Segments>
<SegmentListResponseModel.SegmentDetail>
<Id>981e4ab0-fea2-4a13-b230-5e737eba638b</Id>
<IsSelected>true</IsSelected>
<Name>sample string 2</Name>
</SegmentListResponseModel.SegmentDetail>
<SegmentListResponseModel.SegmentDetail>
<Id>981e4ab0-fea2-4a13-b230-5e737eba638b</Id>
<IsSelected>true</IsSelected>
<Name>sample string 2</Name>
</SegmentListResponseModel.SegmentDetail>
</Segments>
<SegmentsCount>2</SegmentsCount>
<SegmentsSelectedCount>3</SegmentsSelectedCount>
</SegmentListResponseModel>