POST api/RoomCategory/Add

Request Information

URI Parameters

None.

Body Parameters

RoomCategoryAddDto
NameDescriptionTypeAdditional information
WebSiteID

globally unique identifier

None.

HotelID

globally unique identifier

None.

Languages

Collection of RoomCategoryLanguageAddDto

None.

Request Formats

application/json, text/json

Sample:
{
  "webSiteID": "5d5b9fcf-b028-48d6-a076-f9d50e5b577d",
  "hotelID": "4a3f4d90-f509-4477-a4d7-9f2ce2f80524",
  "languages": [
    {
      "roomCategoryID": "e2eaafd7-9ebd-4e7f-9336-bec2d516ebff",
      "roomCategory": "sample string 1",
      "languageID": "4bd1e68b-d649-4cdd-95d8-bccddb17b969"
    },
    {
      "roomCategoryID": "e2eaafd7-9ebd-4e7f-9336-bec2d516ebff",
      "roomCategory": "sample string 1",
      "languageID": "4bd1e68b-d649-4cdd-95d8-bccddb17b969"
    }
  ]
}

application/xml, text/xml

Sample:
<RoomCategoryAddDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RS.Core.Service.DTOs">
  <HotelID>4a3f4d90-f509-4477-a4d7-9f2ce2f80524</HotelID>
  <Languages>
    <RoomCategoryLanguageAddDto>
      <LanguageID>4bd1e68b-d649-4cdd-95d8-bccddb17b969</LanguageID>
      <RoomCategory>sample string 1</RoomCategory>
      <RoomCategoryID>e2eaafd7-9ebd-4e7f-9336-bec2d516ebff</RoomCategoryID>
    </RoomCategoryLanguageAddDto>
    <RoomCategoryLanguageAddDto>
      <LanguageID>4bd1e68b-d649-4cdd-95d8-bccddb17b969</LanguageID>
      <RoomCategory>sample string 1</RoomCategory>
      <RoomCategoryID>e2eaafd7-9ebd-4e7f-9336-bec2d516ebff</RoomCategoryID>
    </RoomCategoryLanguageAddDto>
  </Languages>
  <WebSiteID>5d5b9fcf-b028-48d6-a076-f9d50e5b577d</WebSiteID>
</RoomCategoryAddDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

text/html

Sample:
{"WebSiteID":"5d5b9fcf-b028-48d6-a076-f9d50e5b577d","HotelID":"4a3f4d90-f509-4477-a4d7-9f2ce2f80524","Languages":[{"RoomCategoryID":"e2eaafd7-9ebd-4e7f-9336-bec2d516ebff","RoomCategory":"sample string 1","LanguageID":"4bd1e68b-d649-4cdd-95d8-bccddb17b969"},{"RoomCategoryID":"e2eaafd7-9ebd-4e7f-9336-bec2d516ebff","RoomCategory":"sample string 1","LanguageID":"4bd1e68b-d649-4cdd-95d8-bccddb17b969"}]}

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml, text/html

Sample:

Sample not available.