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": "711a2600-5348-4fec-954e-3cf6940e9c34",
"SegmentCategoryId": "8115c4e9-a315-41ea-bc8f-73628aff208e",
"DefaultSelectedSegmentIds": [
"d0b6267e-31df-471c-b9ca-b6b2352e9b83",
"83946b1c-0c14-407b-99c5-9bb0b9d9ac4d"
]
}
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>d0b6267e-31df-471c-b9ca-b6b2352e9b83</d2p1:guid>
<d2p1:guid>83946b1c-0c14-407b-99c5-9bb0b9d9ac4d</d2p1:guid>
</DefaultSelectedSegmentIds>
<MemberId>sample string 1</MemberId>
<OrgId>711a2600-5348-4fec-954e-3cf6940e9c34</OrgId>
<SegmentCategoryId>8115c4e9-a315-41ea-bc8f-73628aff208e</SegmentCategoryId>
</SegmentListRequestModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
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": "9f93a23a-87f0-4759-a4b8-82478d680094",
"SegmentCategoryId": "2979720a-6182-4764-9bcd-c510041056c3",
"SegmentsCount": 2,
"SegmentsSelectedCount": 3,
"Segments": [
{
"Id": "aa8fe03a-b125-439b-b9d5-4ef9a822d136",
"Name": "sample string 2",
"IsSelected": true
},
{
"Id": "aa8fe03a-b125-439b-b9d5-4ef9a822d136",
"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>9f93a23a-87f0-4759-a4b8-82478d680094</OrgId>
<SegmentCategoryId>2979720a-6182-4764-9bcd-c510041056c3</SegmentCategoryId>
<Segments>
<SegmentListResponseModel.SegmentDetail>
<Id>aa8fe03a-b125-439b-b9d5-4ef9a822d136</Id>
<IsSelected>true</IsSelected>
<Name>sample string 2</Name>
</SegmentListResponseModel.SegmentDetail>
<SegmentListResponseModel.SegmentDetail>
<Id>aa8fe03a-b125-439b-b9d5-4ef9a822d136</Id>
<IsSelected>true</IsSelected>
<Name>sample string 2</Name>
</SegmentListResponseModel.SegmentDetail>
</Segments>
<SegmentsCount>2</SegmentsCount>
<SegmentsSelectedCount>3</SegmentsSelectedCount>
</SegmentListResponseModel>