PUT api/Reservations/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

ReservationUpdateRequestDTO
NameDescriptionTypeAdditional information
XCoord

decimal number

None.

YCoord

decimal number

None.

SeatId

integer

None.

ParkingSpaceId

integer

None.

ParkingAllDay

boolean

None.

ParkingStartTime

integer

None.

ParkingEndTime

integer

None.

LicensePlate

string

None.

SaveLicencePlate

boolean

None.

LunchItems

Collection of integer

None.

AllDay

boolean

None.

TimeStart

integer

None.

TimeEnd

integer

None.

SetPreferredLevel

boolean

None.

SetPreferredSpot

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "XCoord": 1.0,
  "YCoord": 2.0,
  "SeatId": 1,
  "ParkingSpaceId": 1,
  "ParkingAllDay": true,
  "ParkingStartTime": 1,
  "ParkingEndTime": 1,
  "LicensePlate": "sample string 4",
  "SaveLicencePlate": true,
  "LunchItems": [
    1,
    2
  ],
  "AllDay": true,
  "TimeStart": 7,
  "TimeEnd": 8,
  "SetPreferredLevel": true,
  "SetPreferredSpot": true
}

application/xml, text/xml

Sample:
<ReservationUpdateRequestDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bluedock.Booking.Rest.Models">
  <AllDay>true</AllDay>
  <LicensePlate>sample string 4</LicensePlate>
  <LunchItems xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </LunchItems>
  <ParkingAllDay>true</ParkingAllDay>
  <ParkingEndTime>1</ParkingEndTime>
  <ParkingSpaceId>1</ParkingSpaceId>
  <ParkingStartTime>1</ParkingStartTime>
  <SaveLicencePlate>true</SaveLicencePlate>
  <SeatId>1</SeatId>
  <SetPreferredLevel>true</SetPreferredLevel>
  <SetPreferredSpot>true</SetPreferredSpot>
  <TimeEnd>8</TimeEnd>
  <TimeStart>7</TimeStart>
  <XCoord>1</XCoord>
  <YCoord>2</YCoord>
</ReservationUpdateRequestDTO>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.