PUT api/v2/LotOwner/UpdateMyLot

Request Information

URI Parameters

None.

Body Parameters

InputUpdateMyLot
NameDescriptionTypeAdditional information
ParkingLotID

integer

Required

UserID

integer

Required

LotName

string

Required

Max length: 100

LotDescription

string

Required

Max length: 500

LotAddress

string

Required

Max length: 300

LotState

string

Max length: 30

LotCity

string

Max length: 100

LotZipCode

string

Max length: 10

NightPrice

decimal number

Required

Range: inclusive between 0 and 1.79769313486232E+308

LocationLat

decimal number

Required

LocationLong

decimal number

Required

Request Formats

application/json, text/json

Sample:
{
  "ParkingLotID": 1,
  "UserID": 2,
  "LotName": "sample string 3",
  "LotDescription": "sample string 4",
  "LotAddress": "sample string 5",
  "LotState": "sample string 6",
  "LotCity": "sample string 7",
  "LotZipCode": "sample string 8",
  "NightPrice": 9.1,
  "LocationLat": 1.1,
  "LocationLong": 1.1
}

application/xml, text/xml

Sample:
<InputUpdateMyLot xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TruckSpot.Models.API.Input">
  <LocationLat>1.1</LocationLat>
  <LocationLong>1.1</LocationLong>
  <LotAddress>sample string 5</LotAddress>
  <LotCity>sample string 7</LotCity>
  <LotDescription>sample string 4</LotDescription>
  <LotName>sample string 3</LotName>
  <LotState>sample string 6</LotState>
  <LotZipCode>sample string 8</LotZipCode>
  <NightPrice>9.1</NightPrice>
  <ParkingLotID>1</ParkingLotID>
  <UserID>2</UserID>
</InputUpdateMyLot>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.