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": "304e877b-5814-45f7-baeb-85ad4b9bb7b2",
"SegmentCategoryId": "0f7acf82-bc04-4aff-ba14-3eaa87ee53ff",
"DefaultSelectedSegmentIds": [
"6486597a-d73d-48d0-80cc-72d7b84f686d",
"93a9660c-e9a1-4047-8954-c281525505c7"
]
}
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>6486597a-d73d-48d0-80cc-72d7b84f686d</d2p1:guid>
<d2p1:guid>93a9660c-e9a1-4047-8954-c281525505c7</d2p1:guid>
</DefaultSelectedSegmentIds>
<MemberId>sample string 1</MemberId>
<OrgId>304e877b-5814-45f7-baeb-85ad4b9bb7b2</OrgId>
<SegmentCategoryId>0f7acf82-bc04-4aff-ba14-3eaa87ee53ff</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": "7012fa7d-6d64-41be-a975-a8315af5fb9b",
"SegmentCategoryId": "146d6f37-18e5-44bb-9549-74087efd4619",
"SelectedSegments": [
"4c999a0a-3e7b-4335-8432-718f1e4810c5",
"8a4ea3d1-e14a-4463-98c4-490256878808"
],
"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>7012fa7d-6d64-41be-a975-a8315af5fb9b</OrgId>
<SegmentCategoryId>146d6f37-18e5-44bb-9549-74087efd4619</SegmentCategoryId>
<SelectedSegments xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>4c999a0a-3e7b-4335-8432-718f1e4810c5</d2p1:guid>
<d2p1:guid>8a4ea3d1-e14a-4463-98c4-490256878808</d2p1:guid>
</SelectedSegments>
</SelectedSegmentsResponseModel>