# Update a room **PUT /api/Rooms/{id}** Sample request: PUT /rooms/{roomId} { "roomNumber": "101", "adultsCapacity": 2, "childrenCapacity": 1, "price": 100 } ## Servers - http://api.example.com: http://api.example.com () ## Parameters ### Path parameters - **id** (string(uuid)) The id of the room to update ### Body: application/json (object) The new data for the room - **roomNumber** (integer(int32)) Number of the room in the hotel - **adultsCapacity** (integer(int32)) Adults capacity of the room - **childrenCapacity** (integer(int32)) Children capacity of the room - **price** (number(double)) Price per night of the room - **Additional properties are NOT allowed** () ## Responses ### 200 Success #### Body: application/json (object) - **id** (string(uuid)) - **creationDate** (string(date-time)) - **lastModified** (string(date-time)) - **roomNumber** (integer(int32)) - **roomType** (string) - **adultsCapacity** (integer(int32)) - **childrenCapacity** (integer(int32)) - **hotelName** (string | null) - **Additional properties are NOT allowed** () ### 204 If the room is successfully updated ### 400 If the request data is invalid ### 401 If the user is not authenticated ### 403 If the user is not authorized (not an admin) ### 404 If the room is not found [Powered by Bump.sh](https://bump.sh)