Update Hotel Room API
Overview
Updates configuration details, total room inventory capacity, or nightly rates for a Hotel Room.
- Endpoint:
/api/hotels/rooms/update - Method:
POST
Request Body Schema
| Field | Type | Required | Description |
|---|---|---|---|
id | String (UUID) | Yes | Target Room ID |
roomName | String | No | Updated room name |
basePricePerNight | Number | No | Updated base rate per night |
totalRooms | Number | No | Updated total room capacity |
maxOccupancy | Number | No | Updated max occupancy |
active | Boolean | No | Active status flag |
Request Body Example
{
"id": "11223344-5566-7788-9900-aabbccddeeff",
"roomName": "Ocean Deluxe Suite Premium",
"basePricePerNight": 4800.00,
"totalRooms": 12
}
Response Example (200 OK)
{
"success": true,
"data": {
"id": "11223344-5566-7788-9900-aabbccddeeff",
"roomName": "Ocean Deluxe Suite Premium",
"basePricePerNight": "4800.00",
"totalRooms": 12
},
"message": "Hotel room updated successfully"
}