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": "768d8ccd-bb13-42ca-aa9a-2b8cab305c10",
"SegmentCategoryId": "0e4ea214-8d92-4231-95de-b5526f6fe597",
"DefaultSelectedSegmentIds": [
"3c61476d-e7e1-49c6-b451-44705da719bc",
"50d84765-1723-40e0-8ce2-da1168890ea8"
]
}
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>3c61476d-e7e1-49c6-b451-44705da719bc</d2p1:guid>
<d2p1:guid>50d84765-1723-40e0-8ce2-da1168890ea8</d2p1:guid>
</DefaultSelectedSegmentIds>
<MemberId>sample string 1</MemberId>
<OrgId>768d8ccd-bb13-42ca-aa9a-2b8cab305c10</OrgId>
<SegmentCategoryId>0e4ea214-8d92-4231-95de-b5526f6fe597</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": "4eb2f372-b902-42b1-917f-15364ac79ada",
"SegmentCategoryId": "f7688b2e-a651-405a-b561-c4c6b914afa7",
"SelectedSegments": [
"b5e2c91f-076c-45a5-a259-cf4c59e8acf8",
"54d159e7-9532-46e0-af90-bff8270e8d15"
],
"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>4eb2f372-b902-42b1-917f-15364ac79ada</OrgId>
<SegmentCategoryId>f7688b2e-a651-405a-b561-c4c6b914afa7</SegmentCategoryId>
<SelectedSegments xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>b5e2c91f-076c-45a5-a259-cf4c59e8acf8</d2p1:guid>
<d2p1:guid>54d159e7-9532-46e0-af90-bff8270e8d15</d2p1:guid>
</SelectedSegments>
</SelectedSegmentsResponseModel>