POST api/Segment/GetSegments
Request Information
URI Parameters
None.
Body Parameters
SegmentListRequestModel| Name | Description | Type | Additional information |
|---|---|---|---|
| MemberId | string |
None. |
|
| SegmentCategoryId | globally unique identifier |
None. |
|
| DefaultSelectedSegmentIds | Collection of globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{
"MemberId": "sample string 1",
"SegmentCategoryId": "ed4bae4e-b94d-4f34-b1be-9dacee09b0de",
"DefaultSelectedSegmentIds": [
"5de32301-66db-4d17-a547-e79214be8f53",
"f4a6bedd-a062-421b-b6ce-fa5f2a23e81f"
]
}
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>5de32301-66db-4d17-a547-e79214be8f53</d2p1:guid>
<d2p1:guid>f4a6bedd-a062-421b-b6ce-fa5f2a23e81f</d2p1:guid>
</DefaultSelectedSegmentIds>
<MemberId>sample string 1</MemberId>
<SegmentCategoryId>ed4bae4e-b94d-4f34-b1be-9dacee09b0de</SegmentCategoryId>
</SegmentListRequestModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
SegmentListResponseModel| Name | Description | Type | Additional information |
|---|---|---|---|
| MemberId | string |
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",
"SegmentCategoryId": "0c03f129-03de-4f13-b769-1a375e3ebdaf",
"SegmentsCount": 2,
"SegmentsSelectedCount": 3,
"Segments": [
{
"Id": "10289529-a866-4d11-93f3-91f887749eba",
"Name": "sample string 2",
"IsSelected": true
},
{
"Id": "10289529-a866-4d11-93f3-91f887749eba",
"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>
<SegmentCategoryId>0c03f129-03de-4f13-b769-1a375e3ebdaf</SegmentCategoryId>
<Segments>
<SegmentListResponseModel.SegmentDetail>
<Id>10289529-a866-4d11-93f3-91f887749eba</Id>
<IsSelected>true</IsSelected>
<Name>sample string 2</Name>
</SegmentListResponseModel.SegmentDetail>
<SegmentListResponseModel.SegmentDetail>
<Id>10289529-a866-4d11-93f3-91f887749eba</Id>
<IsSelected>true</IsSelected>
<Name>sample string 2</Name>
</SegmentListResponseModel.SegmentDetail>
</Segments>
<SegmentsCount>2</SegmentsCount>
<SegmentsSelectedCount>3</SegmentsSelectedCount>
</SegmentListResponseModel>