POST api/Segment/GetSegments
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": "79050e58-4c1a-4fad-8dd1-8b52259b9d42",
  "SegmentCategoryId": "ac81bcbe-82ed-413b-9565-bfce77f3688b",
  "DefaultSelectedSegmentIds": [
    "dfbeadb5-2b90-47d4-99b2-14e986cae439",
    "d69cca81-f9e7-4ed8-95fb-0ed756239871"
  ]
}
        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>dfbeadb5-2b90-47d4-99b2-14e986cae439</d2p1:guid>
    <d2p1:guid>d69cca81-f9e7-4ed8-95fb-0ed756239871</d2p1:guid>
  </DefaultSelectedSegmentIds>
  <MemberId>sample string 1</MemberId>
  <OrgId>79050e58-4c1a-4fad-8dd1-8b52259b9d42</OrgId>
  <SegmentCategoryId>ac81bcbe-82ed-413b-9565-bfce77f3688b</SegmentCategoryId>
</SegmentListRequestModel>
        application/x-www-form-urlencoded
            Sample:
    
        
Response Information
Resource Description
SegmentListResponseModel| Name | Description | Type | Additional information | 
|---|---|---|---|
| MemberId | string | 
                             None.  | 
                |
| OrgId | globally unique identifier | 
                             None.  | 
                |
| SegmentCategoryId | globally unique identifier | 
                             None.  | 
                |
| SegmentsCount | integer | 
                             None.  | 
                |
| SegmentsSelectedCount | integer | 
                             None.  | 
                |
| Segments | Collection of SegmentDetail | 
                             None.  | 
                |
| Result | ResponseResult | 
                             None.  | 
                
Response Formats
application/json, text/json
            Sample:
        
{
  "MemberId": "sample string 1",
  "OrgId": "ae64c19d-cd0c-40cd-bfdd-c036e64b91a6",
  "SegmentCategoryId": "4119e8f2-8b02-4000-b41c-866e5dba2dc4",
  "SegmentsCount": 2,
  "SegmentsSelectedCount": 3,
  "Segments": [
    {
      "Id": "e7791761-4a66-4343-98a2-7ac64f216e11",
      "Name": "sample string 2",
      "IsSelected": true
    },
    {
      "Id": "e7791761-4a66-4343-98a2-7ac64f216e11",
      "Name": "sample string 2",
      "IsSelected": true
    }
  ],
  "Result": {
    "Success": true,
    "Message": "sample string 2",
    "Errors": [
      {
        "Message": "sample string 1"
      },
      {
        "Message": "sample string 1"
      }
    ]
  }
}
        application/xml, text/xml
            Sample:
<SegmentListResponseModel 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>ae64c19d-cd0c-40cd-bfdd-c036e64b91a6</OrgId>
  <SegmentCategoryId>4119e8f2-8b02-4000-b41c-866e5dba2dc4</SegmentCategoryId>
  <Segments>
    <SegmentListResponseModel.SegmentDetail>
      <Id>e7791761-4a66-4343-98a2-7ac64f216e11</Id>
      <IsSelected>true</IsSelected>
      <Name>sample string 2</Name>
    </SegmentListResponseModel.SegmentDetail>
    <SegmentListResponseModel.SegmentDetail>
      <Id>e7791761-4a66-4343-98a2-7ac64f216e11</Id>
      <IsSelected>true</IsSelected>
      <Name>sample string 2</Name>
    </SegmentListResponseModel.SegmentDetail>
  </Segments>
  <SegmentsCount>2</SegmentsCount>
  <SegmentsSelectedCount>3</SegmentsSelectedCount>
</SegmentListResponseModel>