POST api/v1/RoomCategory/CreateRoomCategory

Request Information

URI Parameters

None.

Body Parameters

RoomCategory
NameDescriptionTypeAdditional information
_RoomCategoryId

integer

None.

_RoomCategoryName

string

None.

_Description

string

None.

_Price

decimal number

None.

_Rooms

Collection of Room

None.

_CreationDate

date

None.

_UpdatedDate

date

None.

_SysNumber

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "_RoomCategoryId": 1,
  "_RoomCategoryName": "sample string 2",
  "_Description": "sample string 3",
  "_Price": 4.1,
  "_Rooms": [
    {
      "_RoomId": 1,
      "_RoomCategoryId": 2,
      "_HotelId": 3,
      "_RoomName": "sample string 4",
      "_ImageUrl": "sample string 5",
      "_Description": "sample string 6",
      "_IsCheckedIn": true,
      "_Hotel": {
        "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-20T21:41:29.2025393+00:00",
            "_UpdatedDate": "2026-01-20T21:41:29.2025393+00:00",
            "_SysNumber": 4
          },
          {
            "_Id": 1,
            "_ImageLink": "sample string 2",
            "_HotelId": 3,
            "_CreationDate": "2026-01-20T21:41:29.2025393+00:00",
            "_UpdatedDate": "2026-01-20T21:41:29.2025393+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-20T21:41:29.2025393+00:00",
            "_UpdatedDate": "2026-01-20T21:41:29.2025393+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-20T21:41:29.2025393+00:00",
            "_UpdatedDate": "2026-01-20T21:41:29.2025393+00:00",
            "_SysNumber": 8
          }
        ],
        "HotelAmenities": [
          {
            "Id": 1,
            "HotelId": 2,
            "AmenityId": 3,
            "FeatureCount": 4,
            "Description": "sample string 5",
            "_CreationDate": "2026-01-20T21:41:29.2025393+00:00",
            "_UpdatedDate": "2026-01-20T21:41:29.2025393+00:00",
            "_SysNumber": 6
          },
          {
            "Id": 1,
            "HotelId": 2,
            "AmenityId": 3,
            "FeatureCount": 4,
            "Description": "sample string 5",
            "_CreationDate": "2026-01-20T21:41:29.2025393+00:00",
            "_UpdatedDate": "2026-01-20T21:41:29.2025393+00:00",
            "_SysNumber": 6
          }
        ],
        "_CreationDate": "2026-01-20T21:41:29.2025393+00:00",
        "_UpdatedDate": "2026-01-20T21:41:29.2025393+00:00",
        "_SysNumber": 7
      },
      "_RoomFeatures": [
        {
          "_Id": 1,
          "_RoomId": 2,
          "_FeatureId": 3,
          "_FeatureCount": 4,
          "_CreationDate": "2026-01-20T21:41:29.2025393+00:00",
          "_UpdatedDate": "2026-01-20T21:41:29.2025393+00:00",
          "_SysNumber": 5
        },
        {
          "_Id": 1,
          "_RoomId": 2,
          "_FeatureId": 3,
          "_FeatureCount": 4,
          "_CreationDate": "2026-01-20T21:41:29.2025393+00:00",
          "_UpdatedDate": "2026-01-20T21:41:29.2025393+00:00",
          "_SysNumber": 5
        }
      ],
      "_CreationDate": "2026-01-20T21:41:29.2025393+00:00",
      "_UpdatedDate": "2026-01-20T21:41:29.2025393+00:00",
      "_SysNumber": 8
    },
    {
      "_RoomId": 1,
      "_RoomCategoryId": 2,
      "_HotelId": 3,
      "_RoomName": "sample string 4",
      "_ImageUrl": "sample string 5",
      "_Description": "sample string 6",
      "_IsCheckedIn": true,
      "_Hotel": {
        "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-20T21:41:29.2025393+00:00",
            "_UpdatedDate": "2026-01-20T21:41:29.2025393+00:00",
            "_SysNumber": 4
          },
          {
            "_Id": 1,
            "_ImageLink": "sample string 2",
            "_HotelId": 3,
            "_CreationDate": "2026-01-20T21:41:29.2025393+00:00",
            "_UpdatedDate": "2026-01-20T21:41:29.2025393+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-20T21:41:29.2025393+00:00",
            "_UpdatedDate": "2026-01-20T21:41:29.2025393+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-20T21:41:29.2025393+00:00",
            "_UpdatedDate": "2026-01-20T21:41:29.2025393+00:00",
            "_SysNumber": 8
          }
        ],
        "HotelAmenities": [
          {
            "Id": 1,
            "HotelId": 2,
            "AmenityId": 3,
            "FeatureCount": 4,
            "Description": "sample string 5",
            "_CreationDate": "2026-01-20T21:41:29.2025393+00:00",
            "_UpdatedDate": "2026-01-20T21:41:29.2025393+00:00",
            "_SysNumber": 6
          },
          {
            "Id": 1,
            "HotelId": 2,
            "AmenityId": 3,
            "FeatureCount": 4,
            "Description": "sample string 5",
            "_CreationDate": "2026-01-20T21:41:29.2025393+00:00",
            "_UpdatedDate": "2026-01-20T21:41:29.2025393+00:00",
            "_SysNumber": 6
          }
        ],
        "_CreationDate": "2026-01-20T21:41:29.2025393+00:00",
        "_UpdatedDate": "2026-01-20T21:41:29.2025393+00:00",
        "_SysNumber": 7
      },
      "_RoomFeatures": [
        {
          "_Id": 1,
          "_RoomId": 2,
          "_FeatureId": 3,
          "_FeatureCount": 4,
          "_CreationDate": "2026-01-20T21:41:29.2025393+00:00",
          "_UpdatedDate": "2026-01-20T21:41:29.2025393+00:00",
          "_SysNumber": 5
        },
        {
          "_Id": 1,
          "_RoomId": 2,
          "_FeatureId": 3,
          "_FeatureCount": 4,
          "_CreationDate": "2026-01-20T21:41:29.2025393+00:00",
          "_UpdatedDate": "2026-01-20T21:41:29.2025393+00:00",
          "_SysNumber": 5
        }
      ],
      "_CreationDate": "2026-01-20T21:41:29.2025393+00:00",
      "_UpdatedDate": "2026-01-20T21:41:29.2025393+00:00",
      "_SysNumber": 8
    }
  ],
  "_CreationDate": "2026-01-20T21:41:29.2025393+00:00",
  "_UpdatedDate": "2026-01-20T21:41:29.2025393+00:00",
  "_SysNumber": 5
}

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.