POST api/Segment/GetSelectedSegmentsForOrg
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": "0fca6721-62f0-4ca3-80a8-f787878f3dfb", "SegmentCategoryId": "32fd06ba-b530-49e8-a0b8-2356e95e0299", "DefaultSelectedSegmentIds": [ "128c4053-bf65-4638-afaa-18867bec07bd", "152ad730-715b-40de-82a1-adc5d48e3997" ] }
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>128c4053-bf65-4638-afaa-18867bec07bd</d2p1:guid> <d2p1:guid>152ad730-715b-40de-82a1-adc5d48e3997</d2p1:guid> </DefaultSelectedSegmentIds> <MemberId>sample string 1</MemberId> <OrgId>0fca6721-62f0-4ca3-80a8-f787878f3dfb</OrgId> <SegmentCategoryId>32fd06ba-b530-49e8-a0b8-2356e95e0299</SegmentCategoryId> </SegmentListRequestModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
SelectedSegmentsResponseModelName | Description | Type | Additional information |
---|---|---|---|
MemberId | string |
None. |
|
OrgId | globally unique identifier |
None. |
|
SegmentCategoryId | globally unique identifier |
None. |
|
SelectedSegments | Collection of globally unique identifier |
None. |
|
Result | ResponseResult |
None. |
Response Formats
application/json, text/json
Sample:
{ "MemberId": "sample string 1", "OrgId": "136ed792-0cc3-42eb-8e5e-a3a6e8f2550a", "SegmentCategoryId": "b7f436ad-9e75-4950-8c0c-ca86fbaf459a", "SelectedSegments": [ "d620a03a-3232-47de-81c4-6502114344e8", "cca89700-2175-441f-a94b-de52b37957a0" ], "Result": { "Success": true, "Message": "sample string 2", "Errors": [ { "Message": "sample string 1" }, { "Message": "sample string 1" } ] } }
application/xml, text/xml
Sample:
<SelectedSegmentsResponseModel 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>136ed792-0cc3-42eb-8e5e-a3a6e8f2550a</OrgId> <SegmentCategoryId>b7f436ad-9e75-4950-8c0c-ca86fbaf459a</SegmentCategoryId> <SelectedSegments xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>d620a03a-3232-47de-81c4-6502114344e8</d2p1:guid> <d2p1:guid>cca89700-2175-441f-a94b-de52b37957a0</d2p1:guid> </SelectedSegments> </SelectedSegmentsResponseModel>