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": "dd6ca2b9-2a19-4832-9bc7-87574d354ef4",
"SegmentCategoryId": "aeb3dc09-2225-4d4b-b719-66d391a0e59c",
"DefaultSelectedSegmentIds": [
"974b0cd7-7f76-4be4-a552-1befe96518de",
"0c73f4ce-3378-4d9a-8c1a-c52d5ca50227"
]
}
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>974b0cd7-7f76-4be4-a552-1befe96518de</d2p1:guid>
<d2p1:guid>0c73f4ce-3378-4d9a-8c1a-c52d5ca50227</d2p1:guid>
</DefaultSelectedSegmentIds>
<MemberId>sample string 1</MemberId>
<OrgId>dd6ca2b9-2a19-4832-9bc7-87574d354ef4</OrgId>
<SegmentCategoryId>aeb3dc09-2225-4d4b-b719-66d391a0e59c</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": "04fd793b-0ffc-429e-a6e7-94bda48db310",
"SegmentCategoryId": "5a61c4c7-7adc-4513-a10c-8a1ec986e032",
"SelectedSegments": [
"1aef35ad-775a-4f70-9b01-156d47e8be7f",
"ee7dd982-7eda-40aa-8511-06a354ec9ed7"
],
"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>04fd793b-0ffc-429e-a6e7-94bda48db310</OrgId>
<SegmentCategoryId>5a61c4c7-7adc-4513-a10c-8a1ec986e032</SegmentCategoryId>
<SelectedSegments xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>1aef35ad-775a-4f70-9b01-156d47e8be7f</d2p1:guid>
<d2p1:guid>ee7dd982-7eda-40aa-8511-06a354ec9ed7</d2p1:guid>
</SelectedSegments>
</SelectedSegmentsResponseModel>