POST api/Segment/GetSelectedSegmentsForMember
Request Information
URI Parameters
None.
Body Parameters
SegmentListRequestModel| Name | Description | Type | Additional information |
|---|---|---|---|
| MemberId | string |
None. |
|
| SegmentCategoryId | globally unique identifier |
None. |
|
| DefaultSelectedSegmentIds | Collection of globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{
"MemberId": "sample string 1",
"SegmentCategoryId": "1c7bb533-321e-403f-bfc7-c411a8b3c420",
"DefaultSelectedSegmentIds": [
"b9535d06-3a21-4ce3-9eae-1e5e133cd801",
"be326541-3dcb-440f-a6ba-6d2770d04be5"
]
}
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>b9535d06-3a21-4ce3-9eae-1e5e133cd801</d2p1:guid>
<d2p1:guid>be326541-3dcb-440f-a6ba-6d2770d04be5</d2p1:guid>
</DefaultSelectedSegmentIds>
<MemberId>sample string 1</MemberId>
<SegmentCategoryId>1c7bb533-321e-403f-bfc7-c411a8b3c420</SegmentCategoryId>
</SegmentListRequestModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
SelectedSegmentsResponseModel| Name | Description | Type | Additional information |
|---|---|---|---|
| MemberId | string |
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",
"SegmentCategoryId": "be3ac915-f061-403b-b8f4-eea71bd46e60",
"SelectedSegments": [
"61407654-419b-4868-864c-f4a163c85ace",
"1bbc5b3a-b92a-4f8e-892f-915dd97d88ac"
],
"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>
<SegmentCategoryId>be3ac915-f061-403b-b8f4-eea71bd46e60</SegmentCategoryId>
<SelectedSegments xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>61407654-419b-4868-864c-f4a163c85ace</d2p1:guid>
<d2p1:guid>1bbc5b3a-b92a-4f8e-892f-915dd97d88ac</d2p1:guid>
</SelectedSegments>
</SelectedSegmentsResponseModel>