Body
The data for the updated review
-
Title of the review
-
Content of the review (optional)
-
Rating for the hotel (1-5)
Sample request:
PUT /hotels/{hotelId}/reviews/{reviewId} { "Title": "Good Experience", "Description": "The hotel provided good service and comfortable accommodations.", "Rating": 4 }
The data for the updated review
Title of the review
Content of the review (optional)
Rating for the hotel (1-5)
curl \
-X PUT http://api.example.com/api/hotels/{hotelId}/reviews/{reviewId} \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"title":"string","description":"string","rating":42}'
curl \
-X PUT http://api.example.com/api/hotels/{hotelId}/reviews/{reviewId} \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: text/json"
curl \
-X PUT http://api.example.com/api/hotels/{hotelId}/reviews/{reviewId} \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/*+json"
{
"title": "string",
"description": "string",
"rating": 42
}
{
"title": "string",
"description": "string",
"rating": 42
}
{
"title": "string",
"description": "string",
"rating": 42
}