POST api/Segment/GetSelectedSegmentsForOrg
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": "967e08be-fbbf-48be-afc4-cebbb4cc2912",
"SegmentCategoryId": "920728ab-6205-4569-b878-61b5e83c8196",
"DefaultSelectedSegmentIds": [
"01389dd8-f5c2-4bf0-9e43-87fac723a3ce",
"8daacf68-1f0c-44fa-a47c-91f3f54df590"
]
}
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>01389dd8-f5c2-4bf0-9e43-87fac723a3ce</d2p1:guid>
<d2p1:guid>8daacf68-1f0c-44fa-a47c-91f3f54df590</d2p1:guid>
</DefaultSelectedSegmentIds>
<MemberId>sample string 1</MemberId>
<OrgId>967e08be-fbbf-48be-afc4-cebbb4cc2912</OrgId>
<SegmentCategoryId>920728ab-6205-4569-b878-61b5e83c8196</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": "c4806436-875e-43cc-a362-bb10034bf7c3",
"SegmentCategoryId": "7b9a1dff-e706-4b7f-bfcb-d81b91ae28e8",
"SelectedSegments": [
"a27a313a-5fb3-4be9-90e5-68611fb792e5",
"909ecfc3-1dda-4490-a1f1-a16a41f739f3"
],
"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>c4806436-875e-43cc-a362-bb10034bf7c3</OrgId>
<SegmentCategoryId>7b9a1dff-e706-4b7f-bfcb-d81b91ae28e8</SegmentCategoryId>
<SelectedSegments xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>a27a313a-5fb3-4be9-90e5-68611fb792e5</d2p1:guid>
<d2p1:guid>909ecfc3-1dda-4490-a1f1-a16a41f739f3</d2p1:guid>
</SelectedSegments>
</SelectedSegmentsResponseModel>