Update Room by Id
PATCH
/api/v1/rooms/{room_id}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH '/api/v1/rooms/1' \
--header 'Content-Type: application/json' \
--data-raw '{
"hotel_id": 1,
"name": "Standard",
"price_per_night": 100000,
"max_guests": 1,
"available_rooms_per_day": 20
}'
Response Response Example
{
"status_code": 200,
"message": "Update Hotel by Id Success."
}
Request
Path Params
room_id
string
required
Example:
1
Body Params application/json