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": "2264d0a2-3552-4894-8e00-1fecebbc16fe",
"SegmentCategoryId": "03086d89-af2a-45aa-b3e1-7fbb4bb789ca",
"DefaultSelectedSegmentIds": [
"63ca4e90-acfb-434f-b874-444cfe6a602b",
"ef8cc58f-1acc-4b64-b2dd-0b5a17e17bda"
]
}
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>63ca4e90-acfb-434f-b874-444cfe6a602b</d2p1:guid>
<d2p1:guid>ef8cc58f-1acc-4b64-b2dd-0b5a17e17bda</d2p1:guid>
</DefaultSelectedSegmentIds>
<MemberId>sample string 1</MemberId>
<OrgId>2264d0a2-3552-4894-8e00-1fecebbc16fe</OrgId>
<SegmentCategoryId>03086d89-af2a-45aa-b3e1-7fbb4bb789ca</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": "b7a87a35-8771-4f46-9fef-e4de607b81be",
"SegmentCategoryId": "026a53a9-b462-430b-9fce-7562aecacf13",
"SegmentsCount": 2,
"SegmentsSelectedCount": 3,
"Segments": [
{
"Id": "da4da726-8239-4712-adec-e1e0be813540",
"Name": "sample string 2",
"IsSelected": true
},
{
"Id": "da4da726-8239-4712-adec-e1e0be813540",
"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>b7a87a35-8771-4f46-9fef-e4de607b81be</OrgId>
<SegmentCategoryId>026a53a9-b462-430b-9fce-7562aecacf13</SegmentCategoryId>
<Segments>
<SegmentListResponseModel.SegmentDetail>
<Id>da4da726-8239-4712-adec-e1e0be813540</Id>
<IsSelected>true</IsSelected>
<Name>sample string 2</Name>
</SegmentListResponseModel.SegmentDetail>
<SegmentListResponseModel.SegmentDetail>
<Id>da4da726-8239-4712-adec-e1e0be813540</Id>
<IsSelected>true</IsSelected>
<Name>sample string 2</Name>
</SegmentListResponseModel.SegmentDetail>
</Segments>
<SegmentsCount>2</SegmentsCount>
<SegmentsSelectedCount>3</SegmentsSelectedCount>
</SegmentListResponseModel>