POST api/Segment/GetSelectedSegmentsForMember
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": "8a865b65-95d7-4bc8-873d-63f9c22d5ebd",
"SegmentCategoryId": "5a46f5fb-a208-4b3a-ae14-49315710252a",
"DefaultSelectedSegmentIds": [
"a8b4acf8-c892-4896-b4b5-da95378b63ff",
"2544239b-f94f-4c55-a254-e8ebce3e2bc1"
]
}
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>a8b4acf8-c892-4896-b4b5-da95378b63ff</d2p1:guid>
<d2p1:guid>2544239b-f94f-4c55-a254-e8ebce3e2bc1</d2p1:guid>
</DefaultSelectedSegmentIds>
<MemberId>sample string 1</MemberId>
<OrgId>8a865b65-95d7-4bc8-873d-63f9c22d5ebd</OrgId>
<SegmentCategoryId>5a46f5fb-a208-4b3a-ae14-49315710252a</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": "a460bcbf-9202-4b3c-a681-b761a41f64b0",
"SegmentCategoryId": "482b099d-37cb-4266-a674-555299b3a7c9",
"SelectedSegments": [
"1e6ea008-a37d-4fb4-ac1e-2c5bec73c2ff",
"38ceb4a8-965c-463d-84d0-1b2352ed2247"
],
"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>a460bcbf-9202-4b3c-a681-b761a41f64b0</OrgId>
<SegmentCategoryId>482b099d-37cb-4266-a674-555299b3a7c9</SegmentCategoryId>
<SelectedSegments xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>1e6ea008-a37d-4fb4-ac1e-2c5bec73c2ff</d2p1:guid>
<d2p1:guid>38ceb4a8-965c-463d-84d0-1b2352ed2247</d2p1:guid>
</SelectedSegments>
</SelectedSegmentsResponseModel>