POST api/ListingSearchHistory/anon

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": "7db7f612-6093-4ba8-b255-6e31a4a9c41c",
  "LastSearchDate": "2021-07-31T05:01:46.3099665+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 1",
    "ma": "sample string 2",
    "mo": "sample string 3",
    "ci": "sample string 4",
    "zi": "sample string 5",
    "mi": "sample string 6",
    "st": 1,
    "Sort": 1,
    "ct": 1,
    "pg": 1,
    "xg": 1,
    "ng": 1,
    "att": [
      "sample string 1",
      "sample string 2"
    ],
    "ns": 1,
    "xs": 1,
    "oh": true,
    "rm": true,
    "sa": 1,
    "nd": "2021-07-31T05:01:46.3099665+00:00",
    "xd": "2021-07-31T05:01:46.3099665+00:00"
  },
  "UnsubscribeNotification": true,
  "NewListingsCount": 12,
  "NotificationLastQueueDate": "2021-07-31T05:01:46.3099665+00:00",
  "NotificationLastSearchDate": "2021-07-31T05:01:46.3099665+00:00",
  "NotificationFrequency": 1
}

text/html

Sample:
{"AgentId":1,"Id":"sample string 2","BuyerId":1,"CookieId":"7db7f612-6093-4ba8-b255-6e31a4a9c41c","LastSearchDate":"2021-07-31T05:01:46.3099665+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 1","ma":"sample string 2","mo":"sample string 3","ci":"sample string 4","zi":"sample string 5","mi":"sample string 6","st":1,"Sort":1,"ct":1,"pg":1,"xg":1,"ng":1,"att":["sample string 1","sample string 2"],"ns":1,"xs":1,"oh":true,"rm":true,"sa":1,"nd":"2021-07-31T05:01:46.3099665+00:00","xd":"2021-07-31T05:01:46.3099665+00:00"},"UnsubscribeNotification":true,"NewListingsCount":12,"NotificationLastQueueDate":"2021-07-31T05:01:46.3099665+00:00","NotificationLastSearchDate":"2021-07-31T05:01:46.3099665+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>7db7f612-6093-4ba8-b255-6e31a4a9c41c</CookieId>
  <Count>11</Count>
  <CustomName>sample string 10</CustomName>
  <Distance>sample string 8</Distance>
  <Filters>
    <FullText xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </FullText>
    <PropertyType xmlns:d3p1="http://schemas.datacontract.org/2004/07/NPlay.Common">
      <d3p1:PropertyType>All</d3p1:PropertyType>
      <d3p1:PropertyType>All</d3p1:PropertyType>
    </PropertyType>
    <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 4</ci>
    <ct>1</ct>
    <gt>1</gt>
    <lt>1</lt>
    <ma>sample string 2</ma>
    <mi>sample string 6</mi>
    <ml>sample string 1</ml>
    <mo>sample string 3</mo>
    <nd>2021-07-31T05:01:46.3099665+00:00</nd>
    <ng>1</ng>
    <nl>1.1</nl>
    <nq>1</nq>
    <ns>1</ns>
    <ny>1</ny>
    <oh>true</oh>
    <pg>1</pg>
    <rm>true</rm>
    <sa>Sale</sa>
    <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>2021-07-31T05:01:46.3099665+00:00</xd>
    <xg>1</xg>
    <xl>1.1</xl>
    <xq>1</xq>
    <xs>1</xs>
    <xy>1</xy>
    <zi>sample string 5</zi>
  </Filters>
  <Id>sample string 2</Id>
  <LastSearchDate>2021-07-31T05:01:46.3099665+00:00</LastSearchDate>
  <Latitude>6.1</Latitude>
  <Longitude>7.1</Longitude>
  <NewListingsCount>12</NewListingsCount>
  <NotificationFrequency>1</NotificationFrequency>
  <NotificationLastQueueDate>2021-07-31T05:01:46.3099665+00:00</NotificationLastQueueDate>
  <NotificationLastSearchDate>2021-07-31T05:01:46.3099665+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.