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": "e490c0ad-79e4-4fb4-9e49-940f56b03e9f",
"SegmentCategoryId": "2735c2d6-f8bc-4af0-b7ac-93372a73f302",
"DefaultSelectedSegmentIds": [
"aedf3a34-e9fb-4ba2-9dd1-d04e09d25717",
"b55d31a5-3fcd-47d3-9d70-6d8033290786"
]
}
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>aedf3a34-e9fb-4ba2-9dd1-d04e09d25717</d2p1:guid>
<d2p1:guid>b55d31a5-3fcd-47d3-9d70-6d8033290786</d2p1:guid>
</DefaultSelectedSegmentIds>
<MemberId>sample string 1</MemberId>
<OrgId>e490c0ad-79e4-4fb4-9e49-940f56b03e9f</OrgId>
<SegmentCategoryId>2735c2d6-f8bc-4af0-b7ac-93372a73f302</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": "a7ca6600-fb48-4bbb-941e-5ccb10e75fc9",
"SegmentCategoryId": "f84a4ed2-a965-4af1-b4ad-2c393ac0d8ae",
"SelectedSegments": [
"49e7c3dc-2ab1-45d2-a24a-6d7d55b5398e",
"98e531f7-8c39-419d-b123-44cf941ac819"
],
"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>a7ca6600-fb48-4bbb-941e-5ccb10e75fc9</OrgId>
<SegmentCategoryId>f84a4ed2-a965-4af1-b4ad-2c393ac0d8ae</SegmentCategoryId>
<SelectedSegments xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>49e7c3dc-2ab1-45d2-a24a-6d7d55b5398e</d2p1:guid>
<d2p1:guid>98e531f7-8c39-419d-b123-44cf941ac819</d2p1:guid>
</SelectedSegments>
</SelectedSegmentsResponseModel>