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": "e22475f3-88a9-4580-94ca-824c6cd9f600", "DefaultSelectedSegmentIds": [ "c940c712-48d3-47bf-9043-cd5cb75bbe6e", "736616d5-a326-4cef-a0db-05b4b4feae2a" ] }
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>c940c712-48d3-47bf-9043-cd5cb75bbe6e</d2p1:guid> <d2p1:guid>736616d5-a326-4cef-a0db-05b4b4feae2a</d2p1:guid> </DefaultSelectedSegmentIds> <MemberId>sample string 1</MemberId> <SegmentCategoryId>e22475f3-88a9-4580-94ca-824c6cd9f600</SegmentCategoryId> </SegmentListRequestModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
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": "4dc4498c-d15a-4b22-ad99-a3a956e3771f", "SegmentsCount": 2, "SegmentsSelectedCount": 3, "Segments": [ { "Id": "8d55e491-141d-465e-82c7-a7c06cce35bf", "Name": "sample string 2", "IsSelected": true }, { "Id": "8d55e491-141d-465e-82c7-a7c06cce35bf", "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>4dc4498c-d15a-4b22-ad99-a3a956e3771f</SegmentCategoryId> <Segments> <SegmentListResponseModel.SegmentDetail> <Id>8d55e491-141d-465e-82c7-a7c06cce35bf</Id> <IsSelected>true</IsSelected> <Name>sample string 2</Name> </SegmentListResponseModel.SegmentDetail> <SegmentListResponseModel.SegmentDetail> <Id>8d55e491-141d-465e-82c7-a7c06cce35bf</Id> <IsSelected>true</IsSelected> <Name>sample string 2</Name> </SegmentListResponseModel.SegmentDetail> </Segments> <SegmentsCount>2</SegmentsCount> <SegmentsSelectedCount>3</SegmentsSelectedCount> </SegmentListResponseModel>