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": "85e6bd57-ecad-4265-95be-6463a7b969de",
"SegmentCategoryId": "aba91d5e-fd40-4140-9d6f-0780f516e1d0",
"DefaultSelectedSegmentIds": [
"c48cedd1-892c-411d-9708-5eb8e075108d",
"630dc6cb-f5af-40b5-a15e-f81418c2aba6"
]
}
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>c48cedd1-892c-411d-9708-5eb8e075108d</d2p1:guid>
<d2p1:guid>630dc6cb-f5af-40b5-a15e-f81418c2aba6</d2p1:guid>
</DefaultSelectedSegmentIds>
<MemberId>sample string 1</MemberId>
<OrgId>85e6bd57-ecad-4265-95be-6463a7b969de</OrgId>
<SegmentCategoryId>aba91d5e-fd40-4140-9d6f-0780f516e1d0</SegmentCategoryId>
</SegmentListRequestModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
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": "ee5e2553-47bf-4820-826c-65bc254b8647",
"SegmentCategoryId": "05e4633c-eca3-485c-a472-37830dc67b7c",
"SelectedSegments": [
"0f2f8b14-535b-4948-b258-99b09df8632d",
"db724231-cfff-4600-af79-4d0ecd0a200d"
],
"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>ee5e2553-47bf-4820-826c-65bc254b8647</OrgId>
<SegmentCategoryId>05e4633c-eca3-485c-a472-37830dc67b7c</SegmentCategoryId>
<SelectedSegments xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>0f2f8b14-535b-4948-b258-99b09df8632d</d2p1:guid>
<d2p1:guid>db724231-cfff-4600-af79-4d0ecd0a200d</d2p1:guid>
</SelectedSegments>
</SelectedSegmentsResponseModel>