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": "e1f85752-57b1-4b38-8600-bac10af36d7d",
"SegmentCategoryId": "a3451972-cf7d-4752-97eb-9ed614b1588b",
"DefaultSelectedSegmentIds": [
"759b4167-4ceb-4faa-98e5-7e20edfc90a5",
"6321ec47-0467-4872-88fd-5562d5666416"
]
}
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>759b4167-4ceb-4faa-98e5-7e20edfc90a5</d2p1:guid>
<d2p1:guid>6321ec47-0467-4872-88fd-5562d5666416</d2p1:guid>
</DefaultSelectedSegmentIds>
<MemberId>sample string 1</MemberId>
<OrgId>e1f85752-57b1-4b38-8600-bac10af36d7d</OrgId>
<SegmentCategoryId>a3451972-cf7d-4752-97eb-9ed614b1588b</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": "d880150a-aa0d-4691-bd8e-0f5a3ace9f23",
"SegmentCategoryId": "420bc962-5a92-40a1-abe5-5364f7806262",
"SelectedSegments": [
"22fc9dc3-a54f-4e3b-9dc3-828b4f6f0069",
"579877d5-6977-47ca-8347-ab5ad224e375"
],
"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>d880150a-aa0d-4691-bd8e-0f5a3ace9f23</OrgId>
<SegmentCategoryId>420bc962-5a92-40a1-abe5-5364f7806262</SegmentCategoryId>
<SelectedSegments xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>22fc9dc3-a54f-4e3b-9dc3-828b4f6f0069</d2p1:guid>
<d2p1:guid>579877d5-6977-47ca-8347-ab5ad224e375</d2p1:guid>
</SelectedSegments>
</SelectedSegmentsResponseModel>