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": "fb737250-ea7e-4511-83bc-99ec5a8d8d1f",
"SegmentCategoryId": "5b0fd8d0-1f73-4fdf-9020-8784cc42a634",
"DefaultSelectedSegmentIds": [
"f990bf5d-8d2d-40da-aeda-f74a9a5039e9",
"592646d3-d27b-4eda-ade9-9dc04a85cf04"
]
}
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>f990bf5d-8d2d-40da-aeda-f74a9a5039e9</d2p1:guid>
<d2p1:guid>592646d3-d27b-4eda-ade9-9dc04a85cf04</d2p1:guid>
</DefaultSelectedSegmentIds>
<MemberId>sample string 1</MemberId>
<OrgId>fb737250-ea7e-4511-83bc-99ec5a8d8d1f</OrgId>
<SegmentCategoryId>5b0fd8d0-1f73-4fdf-9020-8784cc42a634</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": "de6dc36c-aabf-490b-abd4-930984115073",
"SegmentCategoryId": "a5c7e833-c7e5-4217-afaf-136062d9b27c",
"SelectedSegments": [
"d3c7997e-98cd-434e-8b05-a652399b7115",
"87ba3c8f-7603-4249-97de-3f55796d6f99"
],
"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>de6dc36c-aabf-490b-abd4-930984115073</OrgId>
<SegmentCategoryId>a5c7e833-c7e5-4217-afaf-136062d9b27c</SegmentCategoryId>
<SelectedSegments xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>d3c7997e-98cd-434e-8b05-a652399b7115</d2p1:guid>
<d2p1:guid>87ba3c8f-7603-4249-97de-3f55796d6f99</d2p1:guid>
</SelectedSegments>
</SelectedSegmentsResponseModel>