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": "aa59aad2-63d7-4e4f-a410-d4efcf951483", "SegmentCategoryId": "6998832d-446c-4cab-875a-a25a27b94fc5", "DefaultSelectedSegmentIds": [ "98624b50-385f-417c-ad42-093cb8d4c442", "fb461eb9-2c8c-462f-aeb3-07533edda753" ] }
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>98624b50-385f-417c-ad42-093cb8d4c442</d2p1:guid> <d2p1:guid>fb461eb9-2c8c-462f-aeb3-07533edda753</d2p1:guid> </DefaultSelectedSegmentIds> <MemberId>sample string 1</MemberId> <OrgId>aa59aad2-63d7-4e4f-a410-d4efcf951483</OrgId> <SegmentCategoryId>6998832d-446c-4cab-875a-a25a27b94fc5</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": "37f39a00-038f-4957-b569-e2b8d63323a8", "SegmentCategoryId": "9a564ebb-795b-496c-889f-bd162dcae0ff", "SegmentsCount": 2, "SegmentsSelectedCount": 3, "Segments": [ { "Id": "cbdd73d8-c288-43bc-9df0-2f7def1885af", "Name": "sample string 2", "IsSelected": true }, { "Id": "cbdd73d8-c288-43bc-9df0-2f7def1885af", "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>37f39a00-038f-4957-b569-e2b8d63323a8</OrgId> <SegmentCategoryId>9a564ebb-795b-496c-889f-bd162dcae0ff</SegmentCategoryId> <Segments> <SegmentListResponseModel.SegmentDetail> <Id>cbdd73d8-c288-43bc-9df0-2f7def1885af</Id> <IsSelected>true</IsSelected> <Name>sample string 2</Name> </SegmentListResponseModel.SegmentDetail> <SegmentListResponseModel.SegmentDetail> <Id>cbdd73d8-c288-43bc-9df0-2f7def1885af</Id> <IsSelected>true</IsSelected> <Name>sample string 2</Name> </SegmentListResponseModel.SegmentDetail> </Segments> <SegmentsCount>2</SegmentsCount> <SegmentsSelectedCount>3</SegmentsSelectedCount> </SegmentListResponseModel>