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": "4c20f961-a8e1-4270-ba40-84f4373e5fc1",
"SegmentCategoryId": "43c1fc64-63f2-4f5d-a99c-d0ff91804496",
"DefaultSelectedSegmentIds": [
"6c45a730-ce6a-4a6a-836f-35f918231dfc",
"cfb8ba7f-a73b-4cd1-991e-93758c60200f"
]
}
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>6c45a730-ce6a-4a6a-836f-35f918231dfc</d2p1:guid>
<d2p1:guid>cfb8ba7f-a73b-4cd1-991e-93758c60200f</d2p1:guid>
</DefaultSelectedSegmentIds>
<MemberId>sample string 1</MemberId>
<OrgId>4c20f961-a8e1-4270-ba40-84f4373e5fc1</OrgId>
<SegmentCategoryId>43c1fc64-63f2-4f5d-a99c-d0ff91804496</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": "e8a42c8b-7687-43ab-b84a-5c6d019c08b9",
"SegmentCategoryId": "b1f9a876-bcb4-4838-8758-9c6c09e52418",
"SegmentsCount": 2,
"SegmentsSelectedCount": 3,
"Segments": [
{
"Id": "558a3ebf-f5db-4fcc-af13-e25213212b81",
"Name": "sample string 2",
"IsSelected": true
},
{
"Id": "558a3ebf-f5db-4fcc-af13-e25213212b81",
"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>e8a42c8b-7687-43ab-b84a-5c6d019c08b9</OrgId>
<SegmentCategoryId>b1f9a876-bcb4-4838-8758-9c6c09e52418</SegmentCategoryId>
<Segments>
<SegmentListResponseModel.SegmentDetail>
<Id>558a3ebf-f5db-4fcc-af13-e25213212b81</Id>
<IsSelected>true</IsSelected>
<Name>sample string 2</Name>
</SegmentListResponseModel.SegmentDetail>
<SegmentListResponseModel.SegmentDetail>
<Id>558a3ebf-f5db-4fcc-af13-e25213212b81</Id>
<IsSelected>true</IsSelected>
<Name>sample string 2</Name>
</SegmentListResponseModel.SegmentDetail>
</Segments>
<SegmentsCount>2</SegmentsCount>
<SegmentsSelectedCount>3</SegmentsSelectedCount>
</SegmentListResponseModel>