POST api/v1/Room/PostRoom
Request Information
URI Parameters
None.
Body Parameters
RoomUI| Name | Description | Type | Additional 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,
"_FeatureCount": 4,
"Room": {
"_RoomId": 1,
"_RoomCategoryId": 2,
"_HotelId": 3,
"_RoomName": "sample string 4",
"_ImageUrl": "sample string 5",
"_Description": "sample string 6",
"_IsCheckedIn": true,
"_RoomCategory": {
"_RoomCategoryId": 1,
"_RoomCategoryName": "sample string 2",
"_Description": "sample string 3",
"_Price": 4.1,
"_Rooms": [],
"_CreationDate": "2026-01-20T20:26:22.1027797+00:00",
"_UpdatedDate": "2026-01-20T20:26:22.1027797+00:00",
"_SysNumber": 5
},
"_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-20T20:26:22.1027797+00:00",
"_UpdatedDate": "2026-01-20T20:26:22.1027797+00:00",
"_SysNumber": 4
},
{
"_Id": 1,
"_ImageLink": "sample string 2",
"_HotelId": 3,
"_CreationDate": "2026-01-20T20:26:22.1027797+00:00",
"_UpdatedDate": "2026-01-20T20:26:22.1027797+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:26:22.1027797+00:00",
"_UpdatedDate": "2026-01-20T20:26:22.1027797+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:26:22.1027797+00:00",
"_UpdatedDate": "2026-01-20T20:26:22.1027797+00:00",
"_SysNumber": 8
}
],
"HotelAmenities": [
{
"Id": 1,
"HotelId": 2,
"AmenityId": 3,
"FeatureCount": 4,
"Description": "sample string 5",
"_CreationDate": "2026-01-20T20:26:22.1027797+00:00",
"_UpdatedDate": "2026-01-20T20:26:22.1027797+00:00",
"_SysNumber": 6
},
{
"Id": 1,
"HotelId": 2,
"AmenityId": 3,
"FeatureCount": 4,
"Description": "sample string 5",
"_CreationDate": "2026-01-20T20:26:22.1027797+00:00",
"_UpdatedDate": "2026-01-20T20:26:22.1027797+00:00",
"_SysNumber": 6
}
],
"_CreationDate": "2026-01-20T20:26:22.1027797+00:00",
"_UpdatedDate": "2026-01-20T20:26:22.1027797+00:00",
"_SysNumber": 7
},
"_RoomFeatures": [],
"_CreationDate": "2026-01-20T20:26:22.1027797+00:00",
"_UpdatedDate": "2026-01-20T20:26:22.1027797+00:00",
"_SysNumber": 8
},
"_CreationDate": "2026-01-20T20:26:22.1027797+00:00",
"_UpdatedDate": "2026-01-20T20:26:22.1027797+00:00",
"_SysNumber": 5
},
{
"_Id": 1,
"_RoomId": 2,
"_FeatureId": 3,
"_FeatureCount": 4,
"Room": {
"_RoomId": 1,
"_RoomCategoryId": 2,
"_HotelId": 3,
"_RoomName": "sample string 4",
"_ImageUrl": "sample string 5",
"_Description": "sample string 6",
"_IsCheckedIn": true,
"_RoomCategory": {
"_RoomCategoryId": 1,
"_RoomCategoryName": "sample string 2",
"_Description": "sample string 3",
"_Price": 4.1,
"_Rooms": [],
"_CreationDate": "2026-01-20T20:26:22.1027797+00:00",
"_UpdatedDate": "2026-01-20T20:26:22.1027797+00:00",
"_SysNumber": 5
},
"_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-20T20:26:22.1027797+00:00",
"_UpdatedDate": "2026-01-20T20:26:22.1027797+00:00",
"_SysNumber": 4
},
{
"_Id": 1,
"_ImageLink": "sample string 2",
"_HotelId": 3,
"_CreationDate": "2026-01-20T20:26:22.1027797+00:00",
"_UpdatedDate": "2026-01-20T20:26:22.1027797+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:26:22.1027797+00:00",
"_UpdatedDate": "2026-01-20T20:26:22.1027797+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:26:22.1027797+00:00",
"_UpdatedDate": "2026-01-20T20:26:22.1027797+00:00",
"_SysNumber": 8
}
],
"HotelAmenities": [
{
"Id": 1,
"HotelId": 2,
"AmenityId": 3,
"FeatureCount": 4,
"Description": "sample string 5",
"_CreationDate": "2026-01-20T20:26:22.1027797+00:00",
"_UpdatedDate": "2026-01-20T20:26:22.1027797+00:00",
"_SysNumber": 6
},
{
"Id": 1,
"HotelId": 2,
"AmenityId": 3,
"FeatureCount": 4,
"Description": "sample string 5",
"_CreationDate": "2026-01-20T20:26:22.1027797+00:00",
"_UpdatedDate": "2026-01-20T20:26:22.1027797+00:00",
"_SysNumber": 6
}
],
"_CreationDate": "2026-01-20T20:26:22.1027797+00:00",
"_UpdatedDate": "2026-01-20T20:26:22.1027797+00:00",
"_SysNumber": 7
},
"_RoomFeatures": [],
"_CreationDate": "2026-01-20T20:26:22.1027797+00:00",
"_UpdatedDate": "2026-01-20T20:26:22.1027797+00:00",
"_SysNumber": 8
},
"_CreationDate": "2026-01-20T20:26:22.1027797+00:00",
"_UpdatedDate": "2026-01-20T20:26:22.1027797+00:00",
"_SysNumber": 5
}
]
}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample:
Sample not available.