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": "812cf55b-304e-4d33-95b3-2d0b08f30015",
"SegmentCategoryId": "38198312-f58c-4992-9a4f-79581977f5e7",
"DefaultSelectedSegmentIds": [
"32b78e82-445f-47bf-8d99-79bdb3ee86cb",
"ca485788-0d11-46f7-9d36-e29646650ecc"
]
}
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>32b78e82-445f-47bf-8d99-79bdb3ee86cb</d2p1:guid>
<d2p1:guid>ca485788-0d11-46f7-9d36-e29646650ecc</d2p1:guid>
</DefaultSelectedSegmentIds>
<MemberId>sample string 1</MemberId>
<OrgId>812cf55b-304e-4d33-95b3-2d0b08f30015</OrgId>
<SegmentCategoryId>38198312-f58c-4992-9a4f-79581977f5e7</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": "f532010d-a60a-46e0-950c-06a71fb48041",
"SegmentCategoryId": "9d98101b-d35a-45a8-95f0-0ff7d06f3b83",
"SelectedSegments": [
"eeb17dc7-8b44-4487-9ecb-dbedd1d0a387",
"26a391c8-a32b-4f1d-ae74-a64b90898724"
],
"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>f532010d-a60a-46e0-950c-06a71fb48041</OrgId>
<SegmentCategoryId>9d98101b-d35a-45a8-95f0-0ff7d06f3b83</SegmentCategoryId>
<SelectedSegments xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>eeb17dc7-8b44-4487-9ecb-dbedd1d0a387</d2p1:guid>
<d2p1:guid>26a391c8-a32b-4f1d-ae74-a64b90898724</d2p1:guid>
</SelectedSegments>
</SelectedSegmentsResponseModel>