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": "1a3ad279-78a6-4e14-9052-9218b26a3480", "SegmentCategoryId": "970bd188-7ce1-4616-aa84-1ad6a1063ec3", "DefaultSelectedSegmentIds": [ "f5119456-cb7b-4ecc-b2fc-8ca7a266ff6a", "cbde195e-a6a6-4c83-a1d7-2997d271a805" ] }
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>f5119456-cb7b-4ecc-b2fc-8ca7a266ff6a</d2p1:guid> <d2p1:guid>cbde195e-a6a6-4c83-a1d7-2997d271a805</d2p1:guid> </DefaultSelectedSegmentIds> <MemberId>sample string 1</MemberId> <OrgId>1a3ad279-78a6-4e14-9052-9218b26a3480</OrgId> <SegmentCategoryId>970bd188-7ce1-4616-aa84-1ad6a1063ec3</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": "31799f1f-760d-4c8d-8e05-890856967173", "SegmentCategoryId": "e9cea5e3-5a2b-4d71-a30e-c966e98a09a7", "SegmentsCount": 2, "SegmentsSelectedCount": 3, "Segments": [ { "Id": "81fbe669-3dfe-4fd3-b0a2-d4f7e2e29293", "Name": "sample string 2", "IsSelected": true }, { "Id": "81fbe669-3dfe-4fd3-b0a2-d4f7e2e29293", "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>31799f1f-760d-4c8d-8e05-890856967173</OrgId> <SegmentCategoryId>e9cea5e3-5a2b-4d71-a30e-c966e98a09a7</SegmentCategoryId> <Segments> <SegmentListResponseModel.SegmentDetail> <Id>81fbe669-3dfe-4fd3-b0a2-d4f7e2e29293</Id> <IsSelected>true</IsSelected> <Name>sample string 2</Name> </SegmentListResponseModel.SegmentDetail> <SegmentListResponseModel.SegmentDetail> <Id>81fbe669-3dfe-4fd3-b0a2-d4f7e2e29293</Id> <IsSelected>true</IsSelected> <Name>sample string 2</Name> </SegmentListResponseModel.SegmentDetail> </Segments> <SegmentsCount>2</SegmentsCount> <SegmentsSelectedCount>3</SegmentsSelectedCount> </SegmentListResponseModel>