Body
The new data for the room
-
Number of the room in the hotel
-
Adults capacity of the room
-
Children capacity of the room
-
Price per night of the room
Sample request:
PUT /rooms/{roomId} { "roomNumber": "101", "adultsCapacity": 2, "childrenCapacity": 1, "price": 100 }
The new data for the room
Number of the room in the hotel
Adults capacity of the room
Children capacity of the room
Price per night of the room
curl \
-X PUT http://api.example.com/api/Rooms/{id} \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"roomNumber":42,"adultsCapacity":42,"childrenCapacity":42,"price":42.0}'
curl \
-X PUT http://api.example.com/api/Rooms/{id} \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: text/json"
curl \
-X PUT http://api.example.com/api/Rooms/{id} \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/*+json"
{
"roomNumber": 42,
"adultsCapacity": 42,
"childrenCapacity": 42,
"price": 42.0
}
{
"roomNumber": 42,
"adultsCapacity": 42,
"childrenCapacity": 42,
"price": 42.0
}
{
"roomNumber": 42,
"adultsCapacity": 42,
"childrenCapacity": 42,
"price": 42.0
}
{
"id": "string",
"creationDate": "2024-05-04T09:42:00+00:00",
"lastModified": "2024-05-04T09:42:00+00:00",
"roomNumber": 42,
"roomType": "Standard",
"adultsCapacity": 42,
"childrenCapacity": 42,
"hotelName": "string"
}
{
"id": "string",
"creationDate": "2025-05-04T09:42:00Z",
"lastModified": "2025-05-04T09:42:00Z",
"roomNumber": 42,
"roomType": "Standard",
"adultsCapacity": 42,
"childrenCapacity": 42,
"hotelName": "string"
}