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": "28f559a8-47cb-47fe-8296-428c83e02caf",
"SegmentCategoryId": "079affd3-22b0-40cf-a200-072ec48f35ce",
"DefaultSelectedSegmentIds": [
"40cb4ab6-13ea-4eb7-a881-d1689e0564dc",
"34e6c582-9d85-43ab-a2a2-7cdeb873ab1d"
]
}
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>40cb4ab6-13ea-4eb7-a881-d1689e0564dc</d2p1:guid>
<d2p1:guid>34e6c582-9d85-43ab-a2a2-7cdeb873ab1d</d2p1:guid>
</DefaultSelectedSegmentIds>
<MemberId>sample string 1</MemberId>
<OrgId>28f559a8-47cb-47fe-8296-428c83e02caf</OrgId>
<SegmentCategoryId>079affd3-22b0-40cf-a200-072ec48f35ce</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": "70f9acea-cfb3-45b5-9a89-7690781daa21",
"SegmentCategoryId": "ae8a5e0a-a605-4445-895d-fb938c2d44f7",
"SelectedSegments": [
"6db1bb89-2c43-46de-afe5-b1d68fac7c0b",
"0e0bef25-0bb4-400d-9347-3cc5e9016d23"
],
"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>70f9acea-cfb3-45b5-9a89-7690781daa21</OrgId>
<SegmentCategoryId>ae8a5e0a-a605-4445-895d-fb938c2d44f7</SegmentCategoryId>
<SelectedSegments xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>6db1bb89-2c43-46de-afe5-b1d68fac7c0b</d2p1:guid>
<d2p1:guid>0e0bef25-0bb4-400d-9347-3cc5e9016d23</d2p1:guid>
</SelectedSegments>
</SelectedSegmentsResponseModel>