Body
The data for the uploaded hotel
-
Id of the city where the hotel is located
-
Name of the hotel
-
Owner of the hotel
-
Location of the hotel
-
Latitude for the hotel
-
Longitude for the hotel
Sample request:
PUT /hotels/{hotelId} { "name": "Hotel Budapest", "owner": "Hungarian Hotels Ltd.", "street": "King lu, 19 st." "latitude": "15.9", "longitude": "20.5", "starRate" : "4" "cityId": "{cityId}" }
The data for the uploaded hotel
Id of the city where the hotel is located
Name of the hotel
Owner of the hotel
Location of the hotel
Latitude for the hotel
Longitude for the hotel
The data for the uploaded hotel
Id of the city where the hotel is located
Name of the hotel
Owner of the hotel
Location of the hotel
Latitude for the hotel
Longitude for the hotel
curl \
-X PUT http://api.example.com/api/Hotels/{id} \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"cityId":"string","name":"string","owner":"string","street":"string","latitude":42.0,"longitude":42.0}'
curl \
-X PUT http://api.example.com/api/Hotels/{id} \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: text/json"
curl \
-X PUT http://api.example.com/api/Hotels/{id} \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/*+json"
{
"cityId": "string",
"name": "string",
"owner": "string",
"street": "string",
"latitude": 42.0,
"longitude": 42.0
}
{
"cityId": "string",
"name": "string",
"owner": "string",
"street": "string",
"latitude": 42.0,
"longitude": 42.0
}
{
"cityId": "string",
"name": "string",
"owner": "string",
"street": "string",
"latitude": 42.0,
"longitude": 42.0
}