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": "b7a4a0fd-be08-41df-a9d6-f9cf62d293ab",
"SegmentCategoryId": "9ffedd36-eed5-4e43-98f1-f7ae235bcc0b",
"DefaultSelectedSegmentIds": [
"b0f37ec0-1fa9-4918-acf2-a922215f99db",
"18a66334-6858-4f49-904c-036d79536fc3"
]
}
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>b0f37ec0-1fa9-4918-acf2-a922215f99db</d2p1:guid>
<d2p1:guid>18a66334-6858-4f49-904c-036d79536fc3</d2p1:guid>
</DefaultSelectedSegmentIds>
<MemberId>sample string 1</MemberId>
<OrgId>b7a4a0fd-be08-41df-a9d6-f9cf62d293ab</OrgId>
<SegmentCategoryId>9ffedd36-eed5-4e43-98f1-f7ae235bcc0b</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": "e09db6c0-95d4-44a0-a3fc-50101875c8db",
"SegmentCategoryId": "9e7288c9-b51d-449c-bbbe-e0b53696f75c",
"SegmentsCount": 2,
"SegmentsSelectedCount": 3,
"Segments": [
{
"Id": "e677e8ae-fe84-42b1-a3bb-92d7e828881d",
"Name": "sample string 2",
"IsSelected": true
},
{
"Id": "e677e8ae-fe84-42b1-a3bb-92d7e828881d",
"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>e09db6c0-95d4-44a0-a3fc-50101875c8db</OrgId>
<SegmentCategoryId>9e7288c9-b51d-449c-bbbe-e0b53696f75c</SegmentCategoryId>
<Segments>
<SegmentListResponseModel.SegmentDetail>
<Id>e677e8ae-fe84-42b1-a3bb-92d7e828881d</Id>
<IsSelected>true</IsSelected>
<Name>sample string 2</Name>
</SegmentListResponseModel.SegmentDetail>
<SegmentListResponseModel.SegmentDetail>
<Id>e677e8ae-fe84-42b1-a3bb-92d7e828881d</Id>
<IsSelected>true</IsSelected>
<Name>sample string 2</Name>
</SegmentListResponseModel.SegmentDetail>
</Segments>
<SegmentsCount>2</SegmentsCount>
<SegmentsSelectedCount>3</SegmentsSelectedCount>
</SegmentListResponseModel>