POST api/Segment/GetSegments
Request Information
URI Parameters
None.
Body Parameters
SegmentListRequestModelName | 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": "a2072837-1318-4c4b-87ac-2508fe80138f", "SegmentCategoryId": "2ac60dd1-f0cd-4523-b020-37555748bbd0", "DefaultSelectedSegmentIds": [ "40f4b0c1-fbbe-4b5f-8bef-0409a77adf7a", "9967ac3d-b3f4-4825-8e7f-4e12d3baa671" ] }
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>40f4b0c1-fbbe-4b5f-8bef-0409a77adf7a</d2p1:guid> <d2p1:guid>9967ac3d-b3f4-4825-8e7f-4e12d3baa671</d2p1:guid> </DefaultSelectedSegmentIds> <MemberId>sample string 1</MemberId> <OrgId>a2072837-1318-4c4b-87ac-2508fe80138f</OrgId> <SegmentCategoryId>2ac60dd1-f0cd-4523-b020-37555748bbd0</SegmentCategoryId> </SegmentListRequestModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
SegmentListResponseModelName | 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": "a9331a26-b452-42be-95e1-f9976e815cfb", "SegmentCategoryId": "fc4539ed-c8c3-4d92-8c53-ea41cdaeca57", "SegmentsCount": 2, "SegmentsSelectedCount": 3, "Segments": [ { "Id": "23b0b9e7-3f0d-41f1-b650-7f0177ef2d74", "Name": "sample string 2", "IsSelected": true }, { "Id": "23b0b9e7-3f0d-41f1-b650-7f0177ef2d74", "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>a9331a26-b452-42be-95e1-f9976e815cfb</OrgId> <SegmentCategoryId>fc4539ed-c8c3-4d92-8c53-ea41cdaeca57</SegmentCategoryId> <Segments> <SegmentListResponseModel.SegmentDetail> <Id>23b0b9e7-3f0d-41f1-b650-7f0177ef2d74</Id> <IsSelected>true</IsSelected> <Name>sample string 2</Name> </SegmentListResponseModel.SegmentDetail> <SegmentListResponseModel.SegmentDetail> <Id>23b0b9e7-3f0d-41f1-b650-7f0177ef2d74</Id> <IsSelected>true</IsSelected> <Name>sample string 2</Name> </SegmentListResponseModel.SegmentDetail> </Segments> <SegmentsCount>2</SegmentsCount> <SegmentsSelectedCount>3</SegmentsSelectedCount> </SegmentListResponseModel>