POST api/Segment/GetSelectedSegmentsForMember
Request Information
URI Parameters
None.
Body Parameters
SegmentListRequestModel| Name | 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": "6b816d5f-e5f2-4203-bbe0-ae9de9515ff5",
"SegmentCategoryId": "28dacaec-1a25-4913-b447-ab6002a719ed",
"DefaultSelectedSegmentIds": [
"e75a369f-f7cd-4264-a65d-889272368049",
"5931207b-b9f7-4be5-bfad-1c7c97786d95"
]
}
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>e75a369f-f7cd-4264-a65d-889272368049</d2p1:guid>
<d2p1:guid>5931207b-b9f7-4be5-bfad-1c7c97786d95</d2p1:guid>
</DefaultSelectedSegmentIds>
<MemberId>sample string 1</MemberId>
<OrgId>6b816d5f-e5f2-4203-bbe0-ae9de9515ff5</OrgId>
<SegmentCategoryId>28dacaec-1a25-4913-b447-ab6002a719ed</SegmentCategoryId>
</SegmentListRequestModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
SelectedSegmentsResponseModel| Name | 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": "c2e46804-1dbd-4467-bd37-303a5ee284bb",
"SegmentCategoryId": "e799378f-20cb-4feb-a40d-a73406d74c0c",
"SelectedSegments": [
"f17e08ef-6078-4c37-836a-ffa9f4672baf",
"8f2dea8c-c134-4f59-b558-36e4f14b16ee"
],
"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>c2e46804-1dbd-4467-bd37-303a5ee284bb</OrgId>
<SegmentCategoryId>e799378f-20cb-4feb-a40d-a73406d74c0c</SegmentCategoryId>
<SelectedSegments xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>f17e08ef-6078-4c37-836a-ffa9f4672baf</d2p1:guid>
<d2p1:guid>8f2dea8c-c134-4f59-b558-36e4f14b16ee</d2p1:guid>
</SelectedSegments>
</SelectedSegmentsResponseModel>