PUT api/Rooms/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
Room| Name | Description | Type | Additional information |
|---|---|---|---|
| RoomId | integer |
None. |
|
| RoomNumber | integer |
None. |
|
| RoomType | string |
None. |
|
| Capacity | integer |
None. |
|
| PricePerNight | decimal number |
None. |
|
| RoomStatus | string |
None. |
|
| IsDeleted | boolean |
None. |
|
| Reservations | Collection of Reservation |
None. |
Request Formats
application/json, text/json
Sample:
{
"RoomId": 1,
"RoomNumber": 2,
"RoomType": "sample string 3",
"Capacity": 4,
"PricePerNight": 5.0,
"RoomStatus": "sample string 6",
"IsDeleted": true,
"Reservations": [
{
"ReservationId": 1,
"GuestId": 1,
"RoomId": 1,
"CheckInDate": "2026-08-25T02:36:17.4946218-05:00",
"CheckOutDate": "2026-08-25T02:36:17.4946218-05:00",
"NumberOfGuests": 6,
"ReservationStatus": "sample string 7",
"Invoices": [
{
"InvoiceId": 1,
"ReservationId": 1,
"IssueDate": "2026-08-25T02:36:17.4946218-05:00",
"InvoiceStatus": "sample string 4",
"Payments": [
{
"PaymentId": 1,
"PaymentType": "sample string 2",
"AmountPaid": 3.0,
"PaymentDate": "2026-08-25T02:36:17.4946218-05:00",
"InvoiceId": 1
}
]
}
],
"ReservationExtraServices": [
{
"ReservationId": 1,
"ExtraServiceId": 1,
"Quantity": 3
}
]
}
]
}
application/xml, text/xml
Sample:
<Room xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HotelManagement.API">
<RoomId>1</RoomId>
<RoomNumber>2</RoomNumber>
<RoomType>sample string 3</RoomType>
<Capacity>4</Capacity>
<PricePerNight>5</PricePerNight>
<RoomStatus>sample string 6</RoomStatus>
<IsDeleted>true</IsDeleted>
<Reservations>
<Reservation>
<ReservationId>1</ReservationId>
<GuestId>1</GuestId>
<RoomId>1</RoomId>
<CheckInDate>2026-08-25T02:36:17.4946218-05:00</CheckInDate>
<CheckOutDate>2026-08-25T02:36:17.4946218-05:00</CheckOutDate>
<NumberOfGuests>6</NumberOfGuests>
<ReservationStatus>sample string 7</ReservationStatus>
<Invoices>
<Invoice>
<InvoiceId>1</InvoiceId>
<ReservationId>1</ReservationId>
<IssueDate>2026-08-25T02:36:17.4946218-05:00</IssueDate>
<InvoiceStatus>sample string 4</InvoiceStatus>
<Payments>
<Payment>
<PaymentId>1</PaymentId>
<PaymentType>sample string 2</PaymentType>
<AmountPaid>3</AmountPaid>
<PaymentDate>2026-08-25T02:36:17.4946218-05:00</PaymentDate>
<InvoiceId>1</InvoiceId>
</Payment>
</Payments>
</Invoice>
</Invoices>
<ReservationExtraServices>
<ReservationExtraService>
<ReservationId>1</ReservationId>
<ExtraServiceId>1</ExtraServiceId>
<Quantity>3</Quantity>
</ReservationExtraService>
</ReservationExtraServices>
</Reservation>
</Reservations>
</Room>
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.