POST api/Segment/GetSelectedSegmentsForMember

Request Information

URI Parameters

None.

Body Parameters

SegmentListRequestModel
NameDescriptionTypeAdditional 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": "d22a3130-339a-4c63-9583-8a580cae1fa7",
  "SegmentCategoryId": "3ff57765-a4c2-4159-a964-7e897f52700e",
  "DefaultSelectedSegmentIds": [
    "19859d28-fc65-43f9-87c0-1477395d9760",
    "aceb2f4b-3caa-41b4-9ca9-9393f7fc2e19"
  ]
}

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>19859d28-fc65-43f9-87c0-1477395d9760</d2p1:guid>
    <d2p1:guid>aceb2f4b-3caa-41b4-9ca9-9393f7fc2e19</d2p1:guid>
  </DefaultSelectedSegmentIds>
  <MemberId>sample string 1</MemberId>
  <OrgId>d22a3130-339a-4c63-9583-8a580cae1fa7</OrgId>
  <SegmentCategoryId>3ff57765-a4c2-4159-a964-7e897f52700e</SegmentCategoryId>
</SegmentListRequestModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

SelectedSegmentsResponseModel
NameDescriptionTypeAdditional 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": "80bd70d0-8ed9-48df-be40-32bc9895abc5",
  "SegmentCategoryId": "57a9ab77-9878-4ed6-9522-2a8f7b35a1b4",
  "SelectedSegments": [
    "6681d02f-7797-448b-b6e4-4728c36403f6",
    "d37fc77b-864c-4def-910d-52088e3dd725"
  ],
  "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>80bd70d0-8ed9-48df-be40-32bc9895abc5</OrgId>
  <SegmentCategoryId>57a9ab77-9878-4ed6-9522-2a8f7b35a1b4</SegmentCategoryId>
  <SelectedSegments xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:guid>6681d02f-7797-448b-b6e4-4728c36403f6</d2p1:guid>
    <d2p1:guid>d37fc77b-864c-4def-910d-52088e3dd725</d2p1:guid>
  </SelectedSegments>
</SelectedSegmentsResponseModel>