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": "260f5fd7-5d10-44fd-acbf-39145e27dcd6",
"SegmentCategoryId": "63d3da2a-841b-44c5-a6d3-529525163d92",
"DefaultSelectedSegmentIds": [
"58f636a5-61b0-4b78-8dbd-55e1cb45b04e",
"2cab9e1a-231a-4bb1-a7cb-3d72fb591cf1"
]
}
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>58f636a5-61b0-4b78-8dbd-55e1cb45b04e</d2p1:guid>
<d2p1:guid>2cab9e1a-231a-4bb1-a7cb-3d72fb591cf1</d2p1:guid>
</DefaultSelectedSegmentIds>
<MemberId>sample string 1</MemberId>
<OrgId>260f5fd7-5d10-44fd-acbf-39145e27dcd6</OrgId>
<SegmentCategoryId>63d3da2a-841b-44c5-a6d3-529525163d92</SegmentCategoryId>
</SegmentListRequestModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
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": "e81b65b2-e965-4797-8b52-fccd8d9ea01a",
"SegmentCategoryId": "ea99e738-55d8-436b-b283-e6c93e8fa6ef",
"SelectedSegments": [
"e7873f78-3919-4c62-a3d4-642a67693e4a",
"5236490a-cb27-45a1-b1cd-de8748f9f8a8"
],
"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>e81b65b2-e965-4797-8b52-fccd8d9ea01a</OrgId>
<SegmentCategoryId>ea99e738-55d8-436b-b283-e6c93e8fa6ef</SegmentCategoryId>
<SelectedSegments xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>e7873f78-3919-4c62-a3d4-642a67693e4a</d2p1:guid>
<d2p1:guid>5236490a-cb27-45a1-b1cd-de8748f9f8a8</d2p1:guid>
</SelectedSegments>
</SelectedSegmentsResponseModel>