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": "33c75fb5-5eb0-4a55-9ccb-cc523c32a369",
"SegmentCategoryId": "f1de3ecd-6020-4de4-8439-760a542b4b4a",
"DefaultSelectedSegmentIds": [
"3efeb448-170d-4aef-a07b-b96413e20bef",
"6b73f00f-c35f-4acf-8ac3-92af612390c0"
]
}
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>3efeb448-170d-4aef-a07b-b96413e20bef</d2p1:guid>
<d2p1:guid>6b73f00f-c35f-4acf-8ac3-92af612390c0</d2p1:guid>
</DefaultSelectedSegmentIds>
<MemberId>sample string 1</MemberId>
<OrgId>33c75fb5-5eb0-4a55-9ccb-cc523c32a369</OrgId>
<SegmentCategoryId>f1de3ecd-6020-4de4-8439-760a542b4b4a</SegmentCategoryId>
</SegmentListRequestModel>
application/x-www-form-urlencoded
Sample:
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": "ab371017-9db1-42af-8f5f-2365846237bf",
"SegmentCategoryId": "2fe7a416-fece-4086-874c-f986e439fb36",
"SelectedSegments": [
"1dbe464f-627e-4e33-b0bd-27b0c19c3d98",
"2f41ae8c-ea4b-47b4-9556-af91b4b84b4d"
],
"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>ab371017-9db1-42af-8f5f-2365846237bf</OrgId>
<SegmentCategoryId>2fe7a416-fece-4086-874c-f986e439fb36</SegmentCategoryId>
<SelectedSegments xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>1dbe464f-627e-4e33-b0bd-27b0c19c3d98</d2p1:guid>
<d2p1:guid>2f41ae8c-ea4b-47b4-9556-af91b4b84b4d</d2p1:guid>
</SelectedSegments>
</SelectedSegmentsResponseModel>