POST api/v1/Room/PostRoom

Request Information

URI Parameters

None.

Body Parameters

RoomUI
NameDescriptionTypeAdditional information
_RoomId

integer

None.

_RoomCategoryId

integer

None.

_HotelId

integer

None.

_RoomName

string

None.

_ImageUrl

string

None.

_NoOfBeds

integer

None.

_Description

string

None.

_SysNumber

integer

None.

_IsCheckedIn

boolean

None.

Features

Collection of RoomFeature

None.

Request Formats

application/json, text/json

Sample:
{
  "_RoomId": 1,
  "_RoomCategoryId": 2,
  "_HotelId": 3,
  "_RoomName": "sample string 4",
  "_ImageUrl": "sample string 5",
  "_NoOfBeds": 6,
  "_Description": "sample string 7",
  "_SysNumber": 8,
  "_IsCheckedIn": true,
  "Features": [
    {
      "_Id": 1,
      "_RoomId": 2,
      "_FeatureId": 3,
      "_SysNumber": 4,
      "_FeatureCount": 5,
      "Room": {
        "_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": "2026-01-10T06:30:45.0528303+00:00",
          "_UpdatedDate": "2026-01-10T06:30:45.0528303+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": "2026-01-10T06:30:45.0528303+00:00",
          "_UpdatedDate": "2026-01-10T06:30:45.0528303+00:00"
        },
        "_RoomFeatures": [],
        "_CreationDate": "2026-01-10T06:30:45.0528303+00:00",
        "_UpdatedDate": "2026-01-10T06:30:45.0528303+00:00"
      },
      "_CreationDate": "2026-01-10T06:30:45.0528303+00:00",
      "_UpdatedDate": "2026-01-10T06:30:45.0528303+00:00"
    },
    {
      "_Id": 1,
      "_RoomId": 2,
      "_FeatureId": 3,
      "_SysNumber": 4,
      "_FeatureCount": 5,
      "Room": {
        "_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": "2026-01-10T06:30:45.0528303+00:00",
          "_UpdatedDate": "2026-01-10T06:30:45.0528303+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": "2026-01-10T06:30:45.0528303+00:00",
          "_UpdatedDate": "2026-01-10T06:30:45.0528303+00:00"
        },
        "_RoomFeatures": [],
        "_CreationDate": "2026-01-10T06:30:45.0528303+00:00",
        "_UpdatedDate": "2026-01-10T06:30:45.0528303+00:00"
      },
      "_CreationDate": "2026-01-10T06:30:45.0528303+00:00",
      "_UpdatedDate": "2026-01-10T06:30:45.0528303+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.