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": "2d6f9798-11cf-4cbc-8abf-b5707f39c38b", "SegmentCategoryId": "7e8e1c7d-32e4-46db-8ca9-0ec752dbcdf6", "DefaultSelectedSegmentIds": [ "61e082bd-6506-40a4-9fba-743b6433243f", "ee26db99-cff9-46ed-af0d-6015119a02e8" ] }
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>61e082bd-6506-40a4-9fba-743b6433243f</d2p1:guid> <d2p1:guid>ee26db99-cff9-46ed-af0d-6015119a02e8</d2p1:guid> </DefaultSelectedSegmentIds> <MemberId>sample string 1</MemberId> <OrgId>2d6f9798-11cf-4cbc-8abf-b5707f39c38b</OrgId> <SegmentCategoryId>7e8e1c7d-32e4-46db-8ca9-0ec752dbcdf6</SegmentCategoryId> </SegmentListRequestModel>
application/x-www-form-urlencoded
Sample:
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": "7344df95-4ae4-4d1e-9cfe-2a06177a4498", "SegmentCategoryId": "1339f962-3747-4cc3-b939-48f3bbe2dea2", "SegmentsCount": 2, "SegmentsSelectedCount": 3, "Segments": [ { "Id": "fb68ff9b-b0ff-4dc4-a61a-5d66bb267e3d", "Name": "sample string 2", "IsSelected": true }, { "Id": "fb68ff9b-b0ff-4dc4-a61a-5d66bb267e3d", "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>7344df95-4ae4-4d1e-9cfe-2a06177a4498</OrgId> <SegmentCategoryId>1339f962-3747-4cc3-b939-48f3bbe2dea2</SegmentCategoryId> <Segments> <SegmentListResponseModel.SegmentDetail> <Id>fb68ff9b-b0ff-4dc4-a61a-5d66bb267e3d</Id> <IsSelected>true</IsSelected> <Name>sample string 2</Name> </SegmentListResponseModel.SegmentDetail> <SegmentListResponseModel.SegmentDetail> <Id>fb68ff9b-b0ff-4dc4-a61a-5d66bb267e3d</Id> <IsSelected>true</IsSelected> <Name>sample string 2</Name> </SegmentListResponseModel.SegmentDetail> </Segments> <SegmentsCount>2</SegmentsCount> <SegmentsSelectedCount>3</SegmentsSelectedCount> </SegmentListResponseModel>