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": "299cce1a-b732-4be7-9c46-eb56708abb8b",
"SegmentCategoryId": "23b341a4-5912-4bd1-9282-6ff95f77c70d",
"DefaultSelectedSegmentIds": [
"16ca1e81-67a5-49a3-94ae-7b61132760db",
"4065240a-bc0e-4d42-8a1c-a665ac94f636"
]
}
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>16ca1e81-67a5-49a3-94ae-7b61132760db</d2p1:guid>
<d2p1:guid>4065240a-bc0e-4d42-8a1c-a665ac94f636</d2p1:guid>
</DefaultSelectedSegmentIds>
<MemberId>sample string 1</MemberId>
<OrgId>299cce1a-b732-4be7-9c46-eb56708abb8b</OrgId>
<SegmentCategoryId>23b341a4-5912-4bd1-9282-6ff95f77c70d</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": "f8bf811d-0509-4408-8014-abd6ec0f68ad",
"SegmentCategoryId": "c581bca9-d762-432e-803e-ca806b42dea3",
"SegmentsCount": 2,
"SegmentsSelectedCount": 3,
"Segments": [
{
"Id": "4754c274-369a-40a3-905d-3291080184a0",
"Name": "sample string 2",
"IsSelected": true
},
{
"Id": "4754c274-369a-40a3-905d-3291080184a0",
"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>f8bf811d-0509-4408-8014-abd6ec0f68ad</OrgId>
<SegmentCategoryId>c581bca9-d762-432e-803e-ca806b42dea3</SegmentCategoryId>
<Segments>
<SegmentListResponseModel.SegmentDetail>
<Id>4754c274-369a-40a3-905d-3291080184a0</Id>
<IsSelected>true</IsSelected>
<Name>sample string 2</Name>
</SegmentListResponseModel.SegmentDetail>
<SegmentListResponseModel.SegmentDetail>
<Id>4754c274-369a-40a3-905d-3291080184a0</Id>
<IsSelected>true</IsSelected>
<Name>sample string 2</Name>
</SegmentListResponseModel.SegmentDetail>
</Segments>
<SegmentsCount>2</SegmentsCount>
<SegmentsSelectedCount>3</SegmentsSelectedCount>
</SegmentListResponseModel>