PUT api/v1/RoomCategory/UpdateRoomCategory

Request Information

URI Parameters

None.

Body Parameters

RoomCategory
NameDescriptionTypeAdditional information
_RoomCategoryId

integer

None.

_RoomCategoryName

string

None.

_SysNumber

integer

None.

_Description

string

None.

_Price

decimal number

None.

_Rooms

Collection of Room

None.

_CreationDate

date

None.

_UpdatedDate

date

None.

Request Formats

application/json, text/json

Sample:
{
  "_RoomCategoryId": 1,
  "_RoomCategoryName": "sample string 2",
  "_SysNumber": 3,
  "_Description": "sample string 4",
  "_Price": 5.1,
  "_Rooms": [
    {
      "_RoomId": 1,
      "_RoomCategoryId": 2,
      "_HotelId": 3,
      "_RoomName": "sample string 4",
      "_ImageUrl": "sample string 5",
      "_Description": "sample string 6",
      "_SysNumber": 7,
      "_IsCheckedIn": true,
      "_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:41:33.566197+00:00",
        "_UpdatedDate": "2025-12-06T17:41:33.566197+00:00"
      },
      "_RoomFeatures": [
        {
          "_Id": 1,
          "_RoomId": 2,
          "_FeatureId": 3,
          "_SysNumber": 4,
          "_FeatureCount": 5,
          "_CreationDate": "2025-12-06T17:41:33.566197+00:00",
          "_UpdatedDate": "2025-12-06T17:41:33.566197+00:00"
        },
        {
          "_Id": 1,
          "_RoomId": 2,
          "_FeatureId": 3,
          "_SysNumber": 4,
          "_FeatureCount": 5,
          "_CreationDate": "2025-12-06T17:41:33.566197+00:00",
          "_UpdatedDate": "2025-12-06T17:41:33.566197+00:00"
        }
      ],
      "_CreationDate": "2025-12-06T17:41:33.566197+00:00",
      "_UpdatedDate": "2025-12-06T17:41:33.566197+00:00"
    },
    {
      "_RoomId": 1,
      "_RoomCategoryId": 2,
      "_HotelId": 3,
      "_RoomName": "sample string 4",
      "_ImageUrl": "sample string 5",
      "_Description": "sample string 6",
      "_SysNumber": 7,
      "_IsCheckedIn": true,
      "_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:41:33.566197+00:00",
        "_UpdatedDate": "2025-12-06T17:41:33.566197+00:00"
      },
      "_RoomFeatures": [
        {
          "_Id": 1,
          "_RoomId": 2,
          "_FeatureId": 3,
          "_SysNumber": 4,
          "_FeatureCount": 5,
          "_CreationDate": "2025-12-06T17:41:33.566197+00:00",
          "_UpdatedDate": "2025-12-06T17:41:33.566197+00:00"
        },
        {
          "_Id": 1,
          "_RoomId": 2,
          "_FeatureId": 3,
          "_SysNumber": 4,
          "_FeatureCount": 5,
          "_CreationDate": "2025-12-06T17:41:33.566197+00:00",
          "_UpdatedDate": "2025-12-06T17:41:33.566197+00:00"
        }
      ],
      "_CreationDate": "2025-12-06T17:41:33.566197+00:00",
      "_UpdatedDate": "2025-12-06T17:41:33.566197+00:00"
    }
  ],
  "_CreationDate": "2025-12-06T17:41:33.566197+00:00",
  "_UpdatedDate": "2025-12-06T17:41:33.566197+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.