POST api/Segment/GetSegments
Request Information
URI Parameters
None.
Body Parameters
SegmentListRequestModelName | Description | Type | Additional information |
---|---|---|---|
MemberId | string |
None. |
|
SegmentCategoryId | globally unique identifier |
None. |
|
DefaultSelectedSegmentIds | Collection of globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{ "MemberId": "sample string 1", "SegmentCategoryId": "ff88d9f1-94bd-4f1a-9d31-1691a02f926b", "DefaultSelectedSegmentIds": [ "d8e28095-dd4b-4562-b78a-c75e02739274", "cd3dcfe7-6a55-416b-8e0d-d1c7b43d9caa" ] }
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>d8e28095-dd4b-4562-b78a-c75e02739274</d2p1:guid> <d2p1:guid>cd3dcfe7-6a55-416b-8e0d-d1c7b43d9caa</d2p1:guid> </DefaultSelectedSegmentIds> <MemberId>sample string 1</MemberId> <SegmentCategoryId>ff88d9f1-94bd-4f1a-9d31-1691a02f926b</SegmentCategoryId> </SegmentListRequestModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
SegmentListResponseModelName | Description | Type | Additional information |
---|---|---|---|
MemberId | string |
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", "SegmentCategoryId": "2d5d1dc2-f1e7-4fd9-88fa-ca3e70f6b4c3", "SegmentsCount": 2, "SegmentsSelectedCount": 3, "Segments": [ { "Id": "adcfc46e-b09b-4e6e-88f6-40d4ce4faa84", "Name": "sample string 2", "IsSelected": true }, { "Id": "adcfc46e-b09b-4e6e-88f6-40d4ce4faa84", "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> <SegmentCategoryId>2d5d1dc2-f1e7-4fd9-88fa-ca3e70f6b4c3</SegmentCategoryId> <Segments> <SegmentListResponseModel.SegmentDetail> <Id>adcfc46e-b09b-4e6e-88f6-40d4ce4faa84</Id> <IsSelected>true</IsSelected> <Name>sample string 2</Name> </SegmentListResponseModel.SegmentDetail> <SegmentListResponseModel.SegmentDetail> <Id>adcfc46e-b09b-4e6e-88f6-40d4ce4faa84</Id> <IsSelected>true</IsSelected> <Name>sample string 2</Name> </SegmentListResponseModel.SegmentDetail> </Segments> <SegmentsCount>2</SegmentsCount> <SegmentsSelectedCount>3</SegmentsSelectedCount> </SegmentListResponseModel>