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": "da44d169-b482-4930-a4b7-97375af85ee2",
"SegmentCategoryId": "c46cb237-7ead-4fee-8ae9-1ca40843cd59",
"DefaultSelectedSegmentIds": [
"ef260d04-b864-4dc8-a1e8-e0711384739d",
"52d0c2d0-bdb0-47dd-a5f8-4b67d906b1d8"
]
}
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>ef260d04-b864-4dc8-a1e8-e0711384739d</d2p1:guid>
<d2p1:guid>52d0c2d0-bdb0-47dd-a5f8-4b67d906b1d8</d2p1:guid>
</DefaultSelectedSegmentIds>
<MemberId>sample string 1</MemberId>
<OrgId>da44d169-b482-4930-a4b7-97375af85ee2</OrgId>
<SegmentCategoryId>c46cb237-7ead-4fee-8ae9-1ca40843cd59</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": "46c0dc99-f24a-47d6-8425-7c7ed8e3c322",
"SegmentCategoryId": "60368721-720e-4918-b561-e482f7368e73",
"SelectedSegments": [
"df5e1939-c6d3-4075-b2c5-92c90fb4e5b9",
"cf184154-e1a0-4071-98b9-a6f064a8964f"
],
"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>46c0dc99-f24a-47d6-8425-7c7ed8e3c322</OrgId>
<SegmentCategoryId>60368721-720e-4918-b561-e482f7368e73</SegmentCategoryId>
<SelectedSegments xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>df5e1939-c6d3-4075-b2c5-92c90fb4e5b9</d2p1:guid>
<d2p1:guid>cf184154-e1a0-4071-98b9-a6f064a8964f</d2p1:guid>
</SelectedSegments>
</SelectedSegmentsResponseModel>