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": "310a3f8b-47ec-4782-b05b-dfc5d8488ae2", "SegmentCategoryId": "790d0e69-75d3-46a7-800d-52431c278292", "DefaultSelectedSegmentIds": [ "8d8fad90-aaf5-48be-ad3c-61a3841d44d9", "f008a4b7-2410-44d0-b532-3722a2179074" ] }
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>8d8fad90-aaf5-48be-ad3c-61a3841d44d9</d2p1:guid> <d2p1:guid>f008a4b7-2410-44d0-b532-3722a2179074</d2p1:guid> </DefaultSelectedSegmentIds> <MemberId>sample string 1</MemberId> <OrgId>310a3f8b-47ec-4782-b05b-dfc5d8488ae2</OrgId> <SegmentCategoryId>790d0e69-75d3-46a7-800d-52431c278292</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": "8f8b14f6-766a-437f-892a-69faeff58343", "SegmentCategoryId": "e127b762-ebdd-430b-a900-b0711f48b0f8", "SegmentsCount": 2, "SegmentsSelectedCount": 3, "Segments": [ { "Id": "d870595d-616c-45c9-be8b-cb7400012a66", "Name": "sample string 2", "IsSelected": true }, { "Id": "d870595d-616c-45c9-be8b-cb7400012a66", "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>8f8b14f6-766a-437f-892a-69faeff58343</OrgId> <SegmentCategoryId>e127b762-ebdd-430b-a900-b0711f48b0f8</SegmentCategoryId> <Segments> <SegmentListResponseModel.SegmentDetail> <Id>d870595d-616c-45c9-be8b-cb7400012a66</Id> <IsSelected>true</IsSelected> <Name>sample string 2</Name> </SegmentListResponseModel.SegmentDetail> <SegmentListResponseModel.SegmentDetail> <Id>d870595d-616c-45c9-be8b-cb7400012a66</Id> <IsSelected>true</IsSelected> <Name>sample string 2</Name> </SegmentListResponseModel.SegmentDetail> </Segments> <SegmentsCount>2</SegmentsCount> <SegmentsSelectedCount>3</SegmentsSelectedCount> </SegmentListResponseModel>