POST api/PropertyPin

Request Information

URI Parameters

None.

Body Parameters

PropertyPinModel
NameDescriptionTypeAdditional information
AdId

integer

None.

AgentId

integer

Required

Range: inclusive between 1 and 2147483647

BuyerId

integer

Required

Range: inclusive between 1 and 2147483647

Id

string

None.

LeadActivityType

LeadActivityType

None.

ListingId

integer

None.

PinType

PinType

Required

TimeStamp

date

None.

Visits

Collection of date

None.

Request Formats

application/json, text/json

Sample:
{
  "AdId": 1,
  "AgentId": 1,
  "BuyerId": 2,
  "Id": "sample string 3",
  "LeadActivityType": 2,
  "ListingId": 4,
  "PinType": 1,
  "TimeStamp": "2024-04-26T06:57:18.7370961+00:00",
  "Visits": [
    "2024-04-26T06:57:18.7370961+00:00",
    "2024-04-26T06:57:18.7370961+00:00"
  ]
}

text/html

Sample:
{"AdId":1,"AgentId":1,"BuyerId":2,"Id":"sample string 3","LeadActivityType":2,"ListingId":4,"PinType":1,"TimeStamp":"2024-04-26T06:57:18.7370961+00:00","Visits":["2024-04-26T06:57:18.7370961+00:00","2024-04-26T06:57:18.7370961+00:00"]}

application/xml, text/xml

Sample:
<PropertyPinModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NPlay.Common.Models.Services.Leads">
  <AdId>1</AdId>
  <AgentId>1</AgentId>
  <BuyerId>2</BuyerId>
  <Id>sample string 3</Id>
  <ListingId>4</ListingId>
  <PinType>Automatic</PinType>
  <TimeStamp>2024-04-26T06:57:18.7370961+00:00</TimeStamp>
  <Visits xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:dateTime>2024-04-26T06:57:18.7370961+00:00</d2p1:dateTime>
    <d2p1:dateTime>2024-04-26T06:57:18.7370961+00:00</d2p1:dateTime>
  </Visits>
</PropertyPinModel>

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 'PropertyPinModel'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.