POST api/Segment/GetSegments
Request Information
URI Parameters
None.
Body Parameters
SegmentListRequestModel| Name | Description | Type | Additional information |
|---|---|---|---|
| MemberId | string |
None. |
|
| OrgId | globally unique identifier |
None. |
|
| SegmentCategoryId | globally unique identifier |
None. |
|
| DefaultSelectedSegmentIds | Collection of globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{
"MemberId": "sample string 1",
"OrgId": "36fdc2f5-9831-4448-a584-ba9b782881c4",
"SegmentCategoryId": "7011c4a1-679a-4a42-88da-61cf9241df65",
"DefaultSelectedSegmentIds": [
"d164cae4-2039-467a-b485-b711204b6a0a",
"f24a724d-8abd-4615-b032-b23b619a3872"
]
}
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>d164cae4-2039-467a-b485-b711204b6a0a</d2p1:guid>
<d2p1:guid>f24a724d-8abd-4615-b032-b23b619a3872</d2p1:guid>
</DefaultSelectedSegmentIds>
<MemberId>sample string 1</MemberId>
<OrgId>36fdc2f5-9831-4448-a584-ba9b782881c4</OrgId>
<SegmentCategoryId>7011c4a1-679a-4a42-88da-61cf9241df65</SegmentCategoryId>
</SegmentListRequestModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
SegmentListResponseModel| Name | Description | Type | Additional information |
|---|---|---|---|
| MemberId | string |
None. |
|
| OrgId | globally unique identifier |
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",
"OrgId": "80cad210-638d-483e-8fa6-50b641ee1595",
"SegmentCategoryId": "da8f2b84-7b20-4643-88cc-305ec7324baf",
"SegmentsCount": 2,
"SegmentsSelectedCount": 3,
"Segments": [
{
"Id": "98ca0f0a-fec0-4b0f-abb4-5702c2683029",
"Name": "sample string 2",
"IsSelected": true
},
{
"Id": "98ca0f0a-fec0-4b0f-abb4-5702c2683029",
"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>
<OrgId>80cad210-638d-483e-8fa6-50b641ee1595</OrgId>
<SegmentCategoryId>da8f2b84-7b20-4643-88cc-305ec7324baf</SegmentCategoryId>
<Segments>
<SegmentListResponseModel.SegmentDetail>
<Id>98ca0f0a-fec0-4b0f-abb4-5702c2683029</Id>
<IsSelected>true</IsSelected>
<Name>sample string 2</Name>
</SegmentListResponseModel.SegmentDetail>
<SegmentListResponseModel.SegmentDetail>
<Id>98ca0f0a-fec0-4b0f-abb4-5702c2683029</Id>
<IsSelected>true</IsSelected>
<Name>sample string 2</Name>
</SegmentListResponseModel.SegmentDetail>
</Segments>
<SegmentsCount>2</SegmentsCount>
<SegmentsSelectedCount>3</SegmentsSelectedCount>
</SegmentListResponseModel>