POST api/CreateBed
Request Information
URI Parameters
None.
Body Parameters
BedSaveVm| Name | Description | Type | Additional information |
|---|---|---|---|
| InventoryId | integer |
None. |
|
| FlatRoomId | integer |
None. |
|
| Beds | Collection of BedListSaveVm |
None. |
Request Formats
application/json, text/json
Sample:
{
"InventoryId": 1,
"FlatRoomId": 2,
"Beds": [
{
"Code": "sample string 1",
"ExpectedDeposit": 2.1,
"ExpectedRent": 3.1,
"ExpectedToken": 4.1,
"OneTimeFees": 5.1,
"KeyStatus": true
},
{
"Code": "sample string 1",
"ExpectedDeposit": 2.1,
"ExpectedRent": 3.1,
"ExpectedToken": 4.1,
"OneTimeFees": 5.1,
"KeyStatus": true
}
]
}
application/xml, text/xml
Sample:
<BedSaveVm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BrokerServer.Models.PgModels">
<Beds>
<BedListSaveVm>
<Code>sample string 1</Code>
<ExpectedDeposit>2.1</ExpectedDeposit>
<ExpectedRent>3.1</ExpectedRent>
<ExpectedToken>4.1</ExpectedToken>
<KeyStatus>true</KeyStatus>
<OneTimeFees>5.1</OneTimeFees>
</BedListSaveVm>
<BedListSaveVm>
<Code>sample string 1</Code>
<ExpectedDeposit>2.1</ExpectedDeposit>
<ExpectedRent>3.1</ExpectedRent>
<ExpectedToken>4.1</ExpectedToken>
<KeyStatus>true</KeyStatus>
<OneTimeFees>5.1</OneTimeFees>
</BedListSaveVm>
</Beds>
<FlatRoomId>2</FlatRoomId>
<InventoryId>1</InventoryId>
</BedSaveVm>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.