POST api/CreateFlatRoom

Request Information

URI Parameters

None.

Body Parameters

FlatRoomSaveVm
NameDescriptionTypeAdditional information
Code

string

None.

RoomId

integer

None.

RoomTypeId

integer

None.

InventoryId

integer

None.

NumberOfBeds

integer

None.

IsPrivate

boolean

None.

FlatRoomBeds

Collection of FlatRoomBedSaveVm

None.

Request Formats

application/json, text/json

Sample:
{
  "Code": "sample string 1",
  "RoomId": 2,
  "RoomTypeId": 3,
  "InventoryId": 4,
  "NumberOfBeds": 5,
  "IsPrivate": true,
  "FlatRoomBeds": [
    {
      "Code": "sample string 1",
      "ExpectedDeposit": 2.1,
      "ExpectedRent": 3.1,
      "ExpectedToken": 4.1,
      "OneTimeFees": 5.1
    },
    {
      "Code": "sample string 1",
      "ExpectedDeposit": 2.1,
      "ExpectedRent": 3.1,
      "ExpectedToken": 4.1,
      "OneTimeFees": 5.1
    }
  ]
}

application/xml, text/xml

Sample:
<FlatRoomSaveVm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BrokerServer.Models.PgModels">
  <Code>sample string 1</Code>
  <FlatRoomBeds>
    <FlatRoomBedSaveVm>
      <Code>sample string 1</Code>
      <ExpectedDeposit>2.1</ExpectedDeposit>
      <ExpectedRent>3.1</ExpectedRent>
      <ExpectedToken>4.1</ExpectedToken>
      <OneTimeFees>5.1</OneTimeFees>
    </FlatRoomBedSaveVm>
    <FlatRoomBedSaveVm>
      <Code>sample string 1</Code>
      <ExpectedDeposit>2.1</ExpectedDeposit>
      <ExpectedRent>3.1</ExpectedRent>
      <ExpectedToken>4.1</ExpectedToken>
      <OneTimeFees>5.1</OneTimeFees>
    </FlatRoomBedSaveVm>
  </FlatRoomBeds>
  <InventoryId>4</InventoryId>
  <IsPrivate>true</IsPrivate>
  <NumberOfBeds>5</NumberOfBeds>
  <RoomId>2</RoomId>
  <RoomTypeId>3</RoomTypeId>
</FlatRoomSaveVm>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'FlatRoomSaveVm'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.