POST api/v1/Hotel/UpdateHotel
Request Information
URI Parameters
None.
Body Parameters
Hotel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Name | string |
None. |
|
| Location | string |
None. |
|
| Address | string |
None. |
|
| Description | string |
None. |
|
| ImageLink | string |
None. |
|
| HotelImages | Collection of HotelImage |
None. |
|
| HotelReviews | Collection of HotelReview |
None. |
|
| HotelAmenities | Collection of HotelAmenity |
None. |
|
| _CreationDate | date |
None. |
|
| _UpdatedDate | date |
None. |
|
| _SysNumber | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"Name": "sample string 2",
"Location": "sample string 3",
"Address": "sample string 4",
"Description": "sample string 5",
"ImageLink": "sample string 6",
"HotelImages": [
{
"_Id": 1,
"_ImageLink": "sample string 2",
"_HotelId": 3,
"_CreationDate": "2026-01-20T20:27:02.5640881+00:00",
"_UpdatedDate": "2026-01-20T20:27:02.5640881+00:00",
"_SysNumber": 4
},
{
"_Id": 1,
"_ImageLink": "sample string 2",
"_HotelId": 3,
"_CreationDate": "2026-01-20T20:27:02.5640881+00:00",
"_UpdatedDate": "2026-01-20T20:27:02.5640881+00:00",
"_SysNumber": 4
}
],
"HotelReviews": [
{
"_Id": 1,
"_HotelId": 2,
"_Title": "sample string 3",
"_Username": "sample string 4",
"_From": "sample string 5",
"_Content": "sample string 6",
"_Rating": 7,
"_CreationDate": "2026-01-20T20:27:02.5640881+00:00",
"_UpdatedDate": "2026-01-20T20:27:02.5640881+00:00",
"_SysNumber": 8
},
{
"_Id": 1,
"_HotelId": 2,
"_Title": "sample string 3",
"_Username": "sample string 4",
"_From": "sample string 5",
"_Content": "sample string 6",
"_Rating": 7,
"_CreationDate": "2026-01-20T20:27:02.5640881+00:00",
"_UpdatedDate": "2026-01-20T20:27:02.5640881+00:00",
"_SysNumber": 8
}
],
"HotelAmenities": [
{
"Id": 1,
"HotelId": 2,
"AmenityId": 3,
"FeatureCount": 4,
"Description": "sample string 5",
"_CreationDate": "2026-01-20T20:27:02.5640881+00:00",
"_UpdatedDate": "2026-01-20T20:27:02.5640881+00:00",
"_SysNumber": 6
},
{
"Id": 1,
"HotelId": 2,
"AmenityId": 3,
"FeatureCount": 4,
"Description": "sample string 5",
"_CreationDate": "2026-01-20T20:27:02.5640881+00:00",
"_UpdatedDate": "2026-01-20T20:27:02.5640881+00:00",
"_SysNumber": 6
}
],
"_CreationDate": "2026-01-20T20:27:02.5640881+00:00",
"_UpdatedDate": "2026-01-20T20:27:02.5640881+00:00",
"_SysNumber": 7
}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample:
Sample not available.