POST api/Reservations?username={username}&email={email}&automaticCheckIn={automaticCheckIn}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
username

string

None.

email

string

None.

automaticCheckIn

boolean

Default value is False

Body Parameters

ReservationRequestDTO
NameDescriptionTypeAdditional information
Reservations

Collection of ReservationRequestInfoDTO

None.

Request Formats

application/json, text/json

Sample:
{
  "Reservations": [
    {
      "Date": "2025-12-06T03:59:06.9517414+00:00",
      "AreaId": 2,
      "XCoord": 1.0,
      "YCoord": 1.0,
      "ParkingSpaceId": 1,
      "ParkingAllDay": true,
      "ParkingStartTime": 1,
      "ParkingEndTime": 1,
      "LicensePlate": "sample string 4",
      "SaveLicencePlate": true,
      "LunchIds": [
        1,
        2
      ],
      "SeatId": 1,
      "AllDay": true,
      "TimeStart": 7,
      "TimeEnd": 8,
      "IsGuest": true,
      "HostEmail": "sample string 9",
      "HostName": "sample string 10",
      "SetPreferredLevel": true,
      "SetPreferredSpot": true
    },
    {
      "Date": "2025-12-06T03:59:06.9517414+00:00",
      "AreaId": 2,
      "XCoord": 1.0,
      "YCoord": 1.0,
      "ParkingSpaceId": 1,
      "ParkingAllDay": true,
      "ParkingStartTime": 1,
      "ParkingEndTime": 1,
      "LicensePlate": "sample string 4",
      "SaveLicencePlate": true,
      "LunchIds": [
        1,
        2
      ],
      "SeatId": 1,
      "AllDay": true,
      "TimeStart": 7,
      "TimeEnd": 8,
      "IsGuest": true,
      "HostEmail": "sample string 9",
      "HostName": "sample string 10",
      "SetPreferredLevel": true,
      "SetPreferredSpot": true
    }
  ]
}

application/xml, text/xml

Sample:
<ReservationRequestDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bluedock.Booking.Rest.Models">
  <Reservations>
    <ReservationRequestInfoDTO>
      <AllDay>true</AllDay>
      <AreaId>2</AreaId>
      <Date>2025-12-06T03:59:06.9517414+00:00</Date>
      <HostEmail>sample string 9</HostEmail>
      <HostName>sample string 10</HostName>
      <IsGuest>true</IsGuest>
      <LicensePlate>sample string 4</LicensePlate>
      <LunchIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </LunchIds>
      <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>1</YCoord>
    </ReservationRequestInfoDTO>
    <ReservationRequestInfoDTO>
      <AllDay>true</AllDay>
      <AreaId>2</AreaId>
      <Date>2025-12-06T03:59:06.9517414+00:00</Date>
      <HostEmail>sample string 9</HostEmail>
      <HostName>sample string 10</HostName>
      <IsGuest>true</IsGuest>
      <LicensePlate>sample string 4</LicensePlate>
      <LunchIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </LunchIds>
      <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>1</YCoord>
    </ReservationRequestInfoDTO>
  </Reservations>
</ReservationRequestDTO>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.