PUT api/Reservations/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
ReservationViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ReservationId | integer |
None. |
|
| GuestId | integer |
None. |
|
| RoomId | integer |
None. |
|
| GuestName | string |
None. |
|
| RoomNumber | integer |
None. |
|
| PricePerNight | decimal number |
None. |
|
| CheckInDate | date |
None. |
|
| CheckOutDate | date |
None. |
|
| NumberOfGuests | integer |
None. |
|
| ReservationStatus | string |
None. |
|
| ExtraServices | Collection of ReservationExtraServiceViewModel |
None. |
|
| NumberOfNights | integer |
None. |
|
| DisplayName | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"ReservationId": 1,
"GuestId": 2,
"RoomId": 3,
"GuestName": "sample string 4",
"RoomNumber": 5,
"PricePerNight": 6.0,
"CheckInDate": "2026-08-24T22:58:22.4223777-05:00",
"CheckOutDate": "2026-08-24T22:58:22.4223777-05:00",
"NumberOfGuests": 9,
"ReservationStatus": "sample string 10",
"ExtraServices": [
{
"ExtraServiceId": 1,
"ServiceName": "sample string 2",
"Price": 3.0,
"Quantity": 4,
"Total": 12.0
},
{
"ExtraServiceId": 1,
"ServiceName": "sample string 2",
"Price": 3.0,
"Quantity": 4,
"Total": 12.0
}
],
"NumberOfNights": 0,
"DisplayName": "Reservation #1 - sample string 4 (Room 5)"
}
application/xml, text/xml
Sample:
<ReservationViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HotelManagement.API">
<CheckInDate>2026-08-24T22:58:22.4223777-05:00</CheckInDate>
<CheckOutDate>2026-08-24T22:58:22.4223777-05:00</CheckOutDate>
<ExtraServices>
<ReservationExtraServiceViewModel>
<ExtraServiceId>1</ExtraServiceId>
<Price>3</Price>
<Quantity>4</Quantity>
<ServiceName>sample string 2</ServiceName>
</ReservationExtraServiceViewModel>
<ReservationExtraServiceViewModel>
<ExtraServiceId>1</ExtraServiceId>
<Price>3</Price>
<Quantity>4</Quantity>
<ServiceName>sample string 2</ServiceName>
</ReservationExtraServiceViewModel>
</ExtraServices>
<GuestId>2</GuestId>
<GuestName>sample string 4</GuestName>
<NumberOfGuests>9</NumberOfGuests>
<PricePerNight>6</PricePerNight>
<ReservationId>1</ReservationId>
<ReservationStatus>sample string 10</ReservationStatus>
<RoomId>3</RoomId>
<RoomNumber>5</RoomNumber>
</ReservationViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.