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.

RateplugBuyerId

string

None.

Theme

string

None.

Request Formats

application/json, text/json

Sample:
{
  "AgentId": 1,
  "Id": "sample string 2",
  "BuyerId": 1,
  "CookieId": "48c8a277-e758-4447-8444-c81df5d7f2e0",
  "LastSearchDate": "2024-12-21T16:24:27.2419427+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": "2024-12-21T16:24:27.2419427+00:00",
    "xd": "2024-12-21T16:24:27.2419427+00:00",
    "se": "sample string 16",
    "sn": "sample string 18",
    "lp": 1,
    "hp": 1,
    "ir": 1.1,
    "dp": 1,
    "sf_va_loan_limit": 1,
    "dpp": 1.1,
    "nm": 1,
    "sf": [
      "sample string 1",
      "sample string 2"
    ]
  },
  "UnsubscribeNotification": true,
  "NewListingsCount": 12,
  "NotificationLastQueueDate": "2024-12-21T16:24:27.2419427+00:00",
  "NotificationLastSearchDate": "2024-12-21T16:24:27.2419427+00:00",
  "NotificationFrequency": 1,
  "RateplugBuyerId": "sample string 13",
  "Theme": "sample string 14"
}

text/html

Sample:
{"AgentId":1,"Id":"sample string 2","BuyerId":1,"CookieId":"48c8a277-e758-4447-8444-c81df5d7f2e0","LastSearchDate":"2024-12-21T16:24:27.2419427+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":"2024-12-21T16:24:27.2419427+00:00","xd":"2024-12-21T16:24:27.2419427+00:00","se":"sample string 16","sn":"sample string 18","lp":1,"hp":1,"ir":1.1,"dp":1,"sf_va_loan_limit":1,"dpp":1.1,"nm":1,"sf":["sample string 1","sample string 2"]},"UnsubscribeNotification":true,"NewListingsCount":12,"NotificationLastQueueDate":"2024-12-21T16:24:27.2419427+00:00","NotificationLastSearchDate":"2024-12-21T16:24:27.2419427+00:00","NotificationFrequency":1,"RateplugBuyerId":"sample string 13","Theme":"sample string 14"}

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>48c8a277-e758-4447-8444-c81df5d7f2e0</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</dp>
    <dpp>1.1</dpp>
    <gt>1</gt>
    <hp>1</hp>
    <ir>1.1</ir>
    <lp>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>2024-12-21T16:24:27.2419427+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>
    <sf xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </sf>
    <sf_va_loan_limit>1</sf_va_loan_limit>
    <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>2024-12-21T16:24:27.2419427+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>2024-12-21T16:24:27.2419427+00:00</LastSearchDate>
  <Latitude>6.1</Latitude>
  <Longitude>7.1</Longitude>
  <NewListingsCount>12</NewListingsCount>
  <NotificationFrequency>1</NotificationFrequency>
  <NotificationLastQueueDate>2024-12-21T16:24:27.2419427+00:00</NotificationLastQueueDate>
  <NotificationLastSearchDate>2024-12-21T16:24:27.2419427+00:00</NotificationLastSearchDate>
  <RateplugBuyerId>sample string 13</RateplugBuyerId>
  <ResultsCount>9</ResultsCount>
  <SearchText>sample string 5</SearchText>
  <Theme>sample string 14</Theme>
  <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.