PUT api/v1/Room/UpdateRoom

Request Information

URI Parameters

None.

Body Parameters

Room
NameDescriptionTypeAdditional information
_RoomId

integer

None.

_RoomCategoryId

integer

None.

_HotelId

integer

None.

_RoomName

string

None.

_ImageUrl

string

None.

_Description

string

None.

_SysNumber

integer

None.

_IsCheckedIn

boolean

None.

_RoomCategory

RoomCategory

None.

_Hotel

Hotel

None.

_RoomFeatures

Collection of RoomFeature

None.

_CreationDate

date

None.

_UpdatedDate

date

None.

Request Formats

application/json, text/json

Sample:
{
  "_RoomId": 1,
  "_RoomCategoryId": 2,
  "_HotelId": 3,
  "_RoomName": "sample string 4",
  "_ImageUrl": "sample string 5",
  "_Description": "sample string 6",
  "_SysNumber": 7,
  "_IsCheckedIn": true,
  "_RoomCategory": {
    "_RoomCategoryId": 1,
    "_RoomCategoryName": "sample string 2",
    "_SysNumber": 3,
    "_Description": "sample string 4",
    "_Price": 5.1,
    "_Rooms": [],
    "_CreationDate": "2025-12-06T17:37:39.9818721+00:00",
    "_UpdatedDate": "2025-12-06T17:37:39.9818721+00:00"
  },
  "_Hotel": {
    "Id": 1,
    "Name": "sample string 2",
    "Location": "sample string 3",
    "Address": "sample string 4",
    "Description": "sample string 5",
    "Longitude": "sample string 6",
    "Latitude": "sample string 7",
    "City": "sample string 8",
    "Features": "sample string 9",
    "Thumb": "sample string 10",
    "Rating": 11,
    "Price": 12.0,
    "SalePrice": 13.0,
    "RoomAmenities": "sample string 14",
    "Numb_Available_Rooms": 15,
    "_FreeWifi": 16,
    "_SysNumber": 17,
    "_CreationDate": "2025-12-06T17:37:39.9818721+00:00",
    "_UpdatedDate": "2025-12-06T17:37:39.9818721+00:00"
  },
  "_RoomFeatures": [
    {
      "_Id": 1,
      "_RoomId": 2,
      "_FeatureId": 3,
      "_SysNumber": 4,
      "_FeatureCount": 5,
      "_CreationDate": "2025-12-06T17:37:39.9818721+00:00",
      "_UpdatedDate": "2025-12-06T17:37:39.9818721+00:00"
    },
    {
      "_Id": 1,
      "_RoomId": 2,
      "_FeatureId": 3,
      "_SysNumber": 4,
      "_FeatureCount": 5,
      "_CreationDate": "2025-12-06T17:37:39.9818721+00:00",
      "_UpdatedDate": "2025-12-06T17:37:39.9818721+00:00"
    }
  ],
  "_CreationDate": "2025-12-06T17:37:39.9818721+00:00",
  "_UpdatedDate": "2025-12-06T17:37:39.9818721+00:00"
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.