POST api/ListingSearchHistory

Request Information

URI Parameters

None.

Body Parameters

ListingSearchHistoryViewModel
NameDescriptionTypeAdditional information
AgentId

integer

None.

Id

string

None.

BuyerId

integer

None.

CookieId

globally unique identifier

None.

LastSearchDate

date

None.

SearchText

string

None.

Latitude

decimal number

None.

Longitude

decimal number

None.

Distance

string

None.

ResultsCount

integer

None.

CustomName

string

None.

Count

integer

None.

Filters

ListingSearchRequestModel

None.

UnsubscribeNotification

boolean

None.

NewListingsCount

integer

None.

NotificationLastQueueDate

date

None.

NotificationLastSearchDate

date

None.

NotificationFrequency

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "AgentId": 1,
  "Id": "sample string 2",
  "BuyerId": 1,
  "CookieId": "8aff756a-9279-4184-bac4-30f33f773128",
  "LastSearchDate": "2022-12-01T09:14:46.4846424+00:00",
  "SearchText": "sample string 5",
  "Latitude": 6.1,
  "Longitude": 7.1,
  "Distance": "sample string 8",
  "ResultsCount": 9,
  "CustomName": "sample string 10",
  "Count": 11,
  "Filters": {
    "lt": 1,
    "gt": 1,
    "bd": 1,
    "bt": 1,
    "ny": 1,
    "xy": 1,
    "nl": 1.1,
    "xl": 1.1,
    "nq": 1,
    "xq": 1,
    "tp": [
      0,
      0
    ],
    "ml": "sample string 2",
    "ma": "sample string 4",
    "mo": "sample string 6",
    "ci": "sample string 8",
    "zi": "sample string 10",
    "mi": "sample string 12",
    "st": 1,
    "Sort": 1,
    "ct": 13,
    "pg": 14,
    "xg": 1,
    "ng": 1,
    "att": [
      "sample string 1",
      "sample string 2"
    ],
    "ns": 1,
    "xs": 1,
    "oh": true,
    "rm": true,
    "sa": 1,
    "nd": "2022-12-01T09:14:46.4846424+00:00",
    "xd": "2022-12-01T09:14:46.4846424+00:00",
    "se": "sample string 16",
    "sn": "sample string 18",
    "lp": 1.1,
    "hp": 1.1,
    "ir": 1.1,
    "dp": 1.1,
    "nm": 1
  },
  "UnsubscribeNotification": true,
  "NewListingsCount": 12,
  "NotificationLastQueueDate": "2022-12-01T09:14:46.4846424+00:00",
  "NotificationLastSearchDate": "2022-12-01T09:14:46.4846424+00:00",
  "NotificationFrequency": 1
}

text/html

Sample:
{"AgentId":1,"Id":"sample string 2","BuyerId":1,"CookieId":"8aff756a-9279-4184-bac4-30f33f773128","LastSearchDate":"2022-12-01T09:14:46.4846424+00:00","SearchText":"sample string 5","Latitude":6.1,"Longitude":7.1,"Distance":"sample string 8","ResultsCount":9,"CustomName":"sample string 10","Count":11,"Filters":{"lt":1,"gt":1,"bd":1,"bt":1,"ny":1,"xy":1,"nl":1.1,"xl":1.1,"nq":1,"xq":1,"tp":[0,0],"ml":"sample string 2","ma":"sample string 4","mo":"sample string 6","ci":"sample string 8","zi":"sample string 10","mi":"sample string 12","st":1,"Sort":1,"ct":13,"pg":14,"xg":1,"ng":1,"att":["sample string 1","sample string 2"],"ns":1,"xs":1,"oh":true,"rm":true,"sa":1,"nd":"2022-12-01T09:14:46.4846424+00:00","xd":"2022-12-01T09:14:46.4846424+00:00","se":"sample string 16","sn":"sample string 18","lp":1.1,"hp":1.1,"ir":1.1,"dp":1.1,"nm":1},"UnsubscribeNotification":true,"NewListingsCount":12,"NotificationLastQueueDate":"2022-12-01T09:14:46.4846424+00:00","NotificationLastSearchDate":"2022-12-01T09:14:46.4846424+00:00","NotificationFrequency":1}

application/xml, text/xml

Sample:
<ListingSearchHistoryViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NPlay.Common.Models.Services">
  <AgentId>1</AgentId>
  <BuyerId>1</BuyerId>
  <CookieId>8aff756a-9279-4184-bac4-30f33f773128</CookieId>
  <Count>11</Count>
  <CustomName>sample string 10</CustomName>
  <Distance>sample string 8</Distance>
  <Filters>
    <att xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </att>
    <bd>1</bd>
    <bt>1</bt>
    <ci>sample string 8</ci>
    <ct>13</ct>
    <dp>1.1</dp>
    <gt>1</gt>
    <hp>1.1</hp>
    <ir>1.1</ir>
    <lp>1.1</lp>
    <lt>1</lt>
    <ma>sample string 4</ma>
    <mi>sample string 12</mi>
    <ml>sample string 2</ml>
    <mo>sample string 6</mo>
    <nd>2022-12-01T09:14:46.4846424+00:00</nd>
    <ng>1</ng>
    <nl>1.1</nl>
    <nm>1</nm>
    <nq>1</nq>
    <ns>1</ns>
    <ny>1</ny>
    <oh>true</oh>
    <pg>14</pg>
    <rm>true</rm>
    <sa>Sale</sa>
    <se>sample string 16</se>
    <sn>sample string 18</sn>
    <st>PriceLowToHigh</st>
    <tp xmlns:d3p1="http://schemas.datacontract.org/2004/07/NPlay.Common">
      <d3p1:PropertyType>All</d3p1:PropertyType>
      <d3p1:PropertyType>All</d3p1:PropertyType>
    </tp>
    <xd>2022-12-01T09:14:46.4846424+00:00</xd>
    <xg>1</xg>
    <xl>1.1</xl>
    <xq>1</xq>
    <xs>1</xs>
    <xy>1</xy>
    <zi>sample string 10</zi>
  </Filters>
  <Id>sample string 2</Id>
  <LastSearchDate>2022-12-01T09:14:46.4846424+00:00</LastSearchDate>
  <Latitude>6.1</Latitude>
  <Longitude>7.1</Longitude>
  <NewListingsCount>12</NewListingsCount>
  <NotificationFrequency>1</NotificationFrequency>
  <NotificationLastQueueDate>2022-12-01T09:14:46.4846424+00:00</NotificationLastQueueDate>
  <NotificationLastSearchDate>2022-12-01T09:14:46.4846424+00:00</NotificationLastSearchDate>
  <ResultsCount>9</ResultsCount>
  <SearchText>sample string 5</SearchText>
  <UnsubscribeNotification>true</UnsubscribeNotification>
</ListingSearchHistoryViewModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ListingSearchHistoryViewModel'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html, application/xml, text/xml

Sample:

Sample not available.