POST api/v2/Drivers/UpdateMySpotAvailability

Request Information

URI Parameters

None.

Body Parameters

InputUpdateMySpotAvailability
NameDescriptionTypeAdditional information
UserID

integer

Required

ParkingLotID

integer

Required

ParkingSpotID

integer

Required

AvailableDates

Collection of DateAvailability

Required

Request Formats

application/json, text/json

Sample:
{
  "UserID": 1,
  "ParkingLotID": 2,
  "ParkingSpotID": 3,
  "AvailableDates": [
    {
      "OPenDate": "2019-10-15T01:13:31.3543126+00:00"
    },
    {
      "OPenDate": "2019-10-15T01:13:31.3543126+00:00"
    }
  ]
}

application/xml, text/xml

Sample:
<InputUpdateMySpotAvailability xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TruckSpot.Models.API.Input">
  <AvailableDates>
    <DateAvailability>
      <OPenDate>2019-10-15T01:13:31.3543126+00:00</OPenDate>
    </DateAvailability>
    <DateAvailability>
      <OPenDate>2019-10-15T01:13:31.3543126+00:00</OPenDate>
    </DateAvailability>
  </AvailableDates>
  <ParkingLotID>2</ParkingLotID>
  <ParkingSpotID>3</ParkingSpotID>
  <UserID>1</UserID>
</InputUpdateMySpotAvailability>

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.