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": "f39e2fe9-7edb-47cc-b3a9-dba3a42a6802", "SegmentCategoryId": "3baa4371-218e-4928-9a8f-7d6efe7c42ab", "DefaultSelectedSegmentIds": [ "5ca30eda-97fd-41b1-b28f-116696d53071", "fe8261c1-247e-4cba-aebe-8ede78705044" ] }
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>5ca30eda-97fd-41b1-b28f-116696d53071</d2p1:guid> <d2p1:guid>fe8261c1-247e-4cba-aebe-8ede78705044</d2p1:guid> </DefaultSelectedSegmentIds> <MemberId>sample string 1</MemberId> <OrgId>f39e2fe9-7edb-47cc-b3a9-dba3a42a6802</OrgId> <SegmentCategoryId>3baa4371-218e-4928-9a8f-7d6efe7c42ab</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": "f159c94c-31d7-4651-bb40-8ca5544bd5da", "SegmentCategoryId": "271c949d-efe1-4630-8a0e-03d4abe4b4f9", "SegmentsCount": 2, "SegmentsSelectedCount": 3, "Segments": [ { "Id": "63d4aa8c-51ae-4e66-b79c-87430b642856", "Name": "sample string 2", "IsSelected": true }, { "Id": "63d4aa8c-51ae-4e66-b79c-87430b642856", "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>f159c94c-31d7-4651-bb40-8ca5544bd5da</OrgId> <SegmentCategoryId>271c949d-efe1-4630-8a0e-03d4abe4b4f9</SegmentCategoryId> <Segments> <SegmentListResponseModel.SegmentDetail> <Id>63d4aa8c-51ae-4e66-b79c-87430b642856</Id> <IsSelected>true</IsSelected> <Name>sample string 2</Name> </SegmentListResponseModel.SegmentDetail> <SegmentListResponseModel.SegmentDetail> <Id>63d4aa8c-51ae-4e66-b79c-87430b642856</Id> <IsSelected>true</IsSelected> <Name>sample string 2</Name> </SegmentListResponseModel.SegmentDetail> </Segments> <SegmentsCount>2</SegmentsCount> <SegmentsSelectedCount>3</SegmentsSelectedCount> </SegmentListResponseModel>