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": "b275a2b5-af5f-47d6-b423-a3b1d18cc76d",
"SegmentCategoryId": "bc9f2b87-4103-4749-8d55-e8358ae4155b",
"DefaultSelectedSegmentIds": [
"4635a7d3-f029-4c92-b323-6a34423c5ef4",
"961f7ad4-5bc7-44f4-b77e-1633b195d031"
]
}
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>4635a7d3-f029-4c92-b323-6a34423c5ef4</d2p1:guid>
<d2p1:guid>961f7ad4-5bc7-44f4-b77e-1633b195d031</d2p1:guid>
</DefaultSelectedSegmentIds>
<MemberId>sample string 1</MemberId>
<OrgId>b275a2b5-af5f-47d6-b423-a3b1d18cc76d</OrgId>
<SegmentCategoryId>bc9f2b87-4103-4749-8d55-e8358ae4155b</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": "60fca73e-efeb-4f57-91bf-36cb540097a3",
"SegmentCategoryId": "45e898e3-5c03-4233-872b-30303d766260",
"SegmentsCount": 2,
"SegmentsSelectedCount": 3,
"Segments": [
{
"Id": "73c4b558-d6d3-45e1-9e1a-f76d4d854d74",
"Name": "sample string 2",
"IsSelected": true
},
{
"Id": "73c4b558-d6d3-45e1-9e1a-f76d4d854d74",
"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>60fca73e-efeb-4f57-91bf-36cb540097a3</OrgId>
<SegmentCategoryId>45e898e3-5c03-4233-872b-30303d766260</SegmentCategoryId>
<Segments>
<SegmentListResponseModel.SegmentDetail>
<Id>73c4b558-d6d3-45e1-9e1a-f76d4d854d74</Id>
<IsSelected>true</IsSelected>
<Name>sample string 2</Name>
</SegmentListResponseModel.SegmentDetail>
<SegmentListResponseModel.SegmentDetail>
<Id>73c4b558-d6d3-45e1-9e1a-f76d4d854d74</Id>
<IsSelected>true</IsSelected>
<Name>sample string 2</Name>
</SegmentListResponseModel.SegmentDetail>
</Segments>
<SegmentsCount>2</SegmentsCount>
<SegmentsSelectedCount>3</SegmentsSelectedCount>
</SegmentListResponseModel>