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": "7e9db64b-8ea1-40c0-8931-09ad98c7baba",
"SegmentCategoryId": "fbe05499-7514-486b-bf35-adad87189e99",
"DefaultSelectedSegmentIds": [
"fe5a313b-42f3-4393-91a2-466bd45fdc42",
"c5149e57-568b-4ed0-afad-6bf9dc92e0b0"
]
}
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>fe5a313b-42f3-4393-91a2-466bd45fdc42</d2p1:guid>
<d2p1:guid>c5149e57-568b-4ed0-afad-6bf9dc92e0b0</d2p1:guid>
</DefaultSelectedSegmentIds>
<MemberId>sample string 1</MemberId>
<OrgId>7e9db64b-8ea1-40c0-8931-09ad98c7baba</OrgId>
<SegmentCategoryId>fbe05499-7514-486b-bf35-adad87189e99</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": "3fd8562c-3e79-4785-9cf2-0f2325e61660",
"SegmentCategoryId": "a56db3ec-b53c-4366-834c-c4882549b22c",
"SegmentsCount": 2,
"SegmentsSelectedCount": 3,
"Segments": [
{
"Id": "c10e16aa-0dc0-442d-81d8-cb1e16a5b0ed",
"Name": "sample string 2",
"IsSelected": true
},
{
"Id": "c10e16aa-0dc0-442d-81d8-cb1e16a5b0ed",
"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>3fd8562c-3e79-4785-9cf2-0f2325e61660</OrgId>
<SegmentCategoryId>a56db3ec-b53c-4366-834c-c4882549b22c</SegmentCategoryId>
<Segments>
<SegmentListResponseModel.SegmentDetail>
<Id>c10e16aa-0dc0-442d-81d8-cb1e16a5b0ed</Id>
<IsSelected>true</IsSelected>
<Name>sample string 2</Name>
</SegmentListResponseModel.SegmentDetail>
<SegmentListResponseModel.SegmentDetail>
<Id>c10e16aa-0dc0-442d-81d8-cb1e16a5b0ed</Id>
<IsSelected>true</IsSelected>
<Name>sample string 2</Name>
</SegmentListResponseModel.SegmentDetail>
</Segments>
<SegmentsCount>2</SegmentsCount>
<SegmentsSelectedCount>3</SegmentsSelectedCount>
</SegmentListResponseModel>