Update Hotel by Id
PATCH
/api/v1/hotels/{hotel_id}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH '/api/v1/hotels/1' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Hotel Yamato",
"location": "Surabaya"
}'
Response Response Example
{
"status_code": 200,
"message": "Update Hotel by Id Success."
}
Request
Path Params
hotel_id
string
required
Example:
1
Body Params application/json