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": "1cd94269-a3cb-4a2b-9d89-0c0eb0771eca",
"SegmentCategoryId": "3581bd5d-c53c-4908-9832-fcbac39cb4ec",
"DefaultSelectedSegmentIds": [
"eb460815-b03e-4fa1-b5a9-38cea08c8bb7",
"9c470e6f-6af0-4029-bc0b-8415dfa82bb0"
]
}
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>eb460815-b03e-4fa1-b5a9-38cea08c8bb7</d2p1:guid>
<d2p1:guid>9c470e6f-6af0-4029-bc0b-8415dfa82bb0</d2p1:guid>
</DefaultSelectedSegmentIds>
<MemberId>sample string 1</MemberId>
<OrgId>1cd94269-a3cb-4a2b-9d89-0c0eb0771eca</OrgId>
<SegmentCategoryId>3581bd5d-c53c-4908-9832-fcbac39cb4ec</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": "baeeaca3-d62b-4d6f-a9a9-617d0da21969",
"SegmentCategoryId": "0dcb316e-f747-4853-bf74-5449b06d5f00",
"SegmentsCount": 2,
"SegmentsSelectedCount": 3,
"Segments": [
{
"Id": "7a030da1-c7ed-420a-928a-510bfae97032",
"Name": "sample string 2",
"IsSelected": true
},
{
"Id": "7a030da1-c7ed-420a-928a-510bfae97032",
"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>baeeaca3-d62b-4d6f-a9a9-617d0da21969</OrgId>
<SegmentCategoryId>0dcb316e-f747-4853-bf74-5449b06d5f00</SegmentCategoryId>
<Segments>
<SegmentListResponseModel.SegmentDetail>
<Id>7a030da1-c7ed-420a-928a-510bfae97032</Id>
<IsSelected>true</IsSelected>
<Name>sample string 2</Name>
</SegmentListResponseModel.SegmentDetail>
<SegmentListResponseModel.SegmentDetail>
<Id>7a030da1-c7ed-420a-928a-510bfae97032</Id>
<IsSelected>true</IsSelected>
<Name>sample string 2</Name>
</SegmentListResponseModel.SegmentDetail>
</Segments>
<SegmentsCount>2</SegmentsCount>
<SegmentsSelectedCount>3</SegmentsSelectedCount>
</SegmentListResponseModel>