POST api/Floors

Creates Floor.

Request Information

URI Parameters

None.

Body Parameters

Floor
NameDescriptionTypeAdditional information
ID

string

None.

AddressID

string

None.

Name

string

None.

Rooms

Collection of Room

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": "sample string 1",
  "AddressID": "sample string 2",
  "Name": "sample string 3",
  "Rooms": [
    null,
    {
      "ID": "sample string 1",
      "FloorID": "sample string 2",
      "Name": "sample string 3",
      "Areas": [
        null,
        {
          "ID": "sample string 1",
          "RoomID": "sample string 2",
          "Name": "sample string 3",
          "UnitIDs": [
            1,
            2
          ],
          "UnitIDsSQL": "1;2",
          "Buttons": null,
          "ButtonsSQL": "",
          "ButtonsToDelete": null,
          "DimmerButtons": null,
          "DimmerButtonsSQL": "",
          "PIRs": null,
          "PIRsSQL": "",
          "PIRsToDelete": null,
          "AutoOffTime": "00:00:00",
          "AutoOffTimeSQL": 0,
          "DimEnabled": false,
          "DimmerLevel": 0,
          "LeadingEdge": false,
          "AutoOffPIREnabled": false,
          "AutoOffMasterPIR": 0,
          "AutoOffMasterPIRToDelete": 0
        }
      ],
      "UnitIDs": [
        1,
        2
      ],
      "UnitIDsSQL": "1;2",
      "Buttons": null,
      "ButtonsSQL": "",
      "ButtonsToDelete": null,
      "DimmerButtons": null,
      "DimmerButtonsSQL": "",
      "PIRs": null,
      "PIRsSQL": "",
      "PIRsToDelete": null,
      "AutoOffTime": "00:00:00",
      "AutoOffTimeSQL": 0,
      "DimEnabled": false,
      "LeadingEdge": false,
      "AutoOffPIREnabled": false,
      "DimmerLevel": 0,
      "AutoOffMasterPIR": 0,
      "AutoOffMasterPIRToDelete": 0
    }
  ]
}

text/html

Sample:
{"ID":"sample string 1","AddressID":"sample string 2","Name":"sample string 3","Rooms":[null,{"ID":"sample string 1","FloorID":"sample string 2","Name":"sample string 3","Areas":[null,{"ID":"sample string 1","RoomID":"sample string 2","Name":"sample string 3","UnitIDs":[1,2],"UnitIDsSQL":"1;2","Buttons":null,"ButtonsSQL":"","ButtonsToDelete":null,"DimmerButtons":null,"DimmerButtonsSQL":"","PIRs":null,"PIRsSQL":"","PIRsToDelete":null,"AutoOffTime":"00:00:00","AutoOffTimeSQL":0,"DimEnabled":false,"DimmerLevel":0,"LeadingEdge":false,"AutoOffPIREnabled":false,"AutoOffMasterPIR":0,"AutoOffMasterPIRToDelete":0}],"UnitIDs":[1,2],"UnitIDsSQL":"1;2","Buttons":null,"ButtonsSQL":"","ButtonsToDelete":null,"DimmerButtons":null,"DimmerButtonsSQL":"","PIRs":null,"PIRsSQL":"","PIRsToDelete":null,"AutoOffTime":"00:00:00","AutoOffTimeSQL":0,"DimEnabled":false,"LeadingEdge":false,"AutoOffPIREnabled":false,"DimmerLevel":0,"AutoOffMasterPIR":0,"AutoOffMasterPIRToDelete":0}]}

application/xml, text/xml

Sample:
<Floor xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZPPModel.Model">
  <AddressID>sample string 2</AddressID>
  <ID>sample string 1</ID>
  <Name>sample string 3</Name>
  <Rooms>
    <Room i:nil="true" />
    <Room>
      <Areas>
        <Area i:nil="true" />
        <Area>
          <AutoOffMasterPIR>0</AutoOffMasterPIR>
          <AutoOffMasterPIRToDelete>0</AutoOffMasterPIRToDelete>
          <AutoOffPIREnabled>false</AutoOffPIREnabled>
          <AutoOffTime>PT0S</AutoOffTime>
          <AutoOffTimeSQL>0</AutoOffTimeSQL>
          <Buttons i:nil="true" />
          <ButtonsSQL></ButtonsSQL>
          <ButtonsToDelete i:nil="true" />
          <DimEnabled>false</DimEnabled>
          <DimmerButtons i:nil="true" />
          <DimmerButtonsSQL></DimmerButtonsSQL>
          <DimmerLevel>0</DimmerLevel>
          <ID>sample string 1</ID>
          <LeadingEdge>false</LeadingEdge>
          <Name>sample string 3</Name>
          <PIRs xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
          <PIRsSQL></PIRsSQL>
          <PIRsToDelete xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
          <RoomID>sample string 2</RoomID>
          <UnitIDs xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:int>1</d6p1:int>
            <d6p1:int>2</d6p1:int>
          </UnitIDs>
          <UnitIDsSQL>1;2</UnitIDsSQL>
        </Area>
      </Areas>
      <AutoOffMasterPIR>0</AutoOffMasterPIR>
      <AutoOffMasterPIRToDelete>0</AutoOffMasterPIRToDelete>
      <AutoOffPIREnabled>false</AutoOffPIREnabled>
      <AutoOffTime>PT0S</AutoOffTime>
      <AutoOffTimeSQL>0</AutoOffTimeSQL>
      <Buttons i:nil="true" />
      <ButtonsSQL></ButtonsSQL>
      <ButtonsToDelete i:nil="true" />
      <DimEnabled>false</DimEnabled>
      <DimmerButtons i:nil="true" />
      <DimmerButtonsSQL></DimmerButtonsSQL>
      <DimmerLevel>0</DimmerLevel>
      <FloorID>sample string 2</FloorID>
      <ID>sample string 1</ID>
      <LeadingEdge>false</LeadingEdge>
      <Name>sample string 3</Name>
      <PIRs xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
      <PIRsSQL></PIRsSQL>
      <PIRsToDelete xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
      <UnitIDs xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </UnitIDs>
      <UnitIDsSQL>1;2</UnitIDsSQL>
    </Room>
  </Rooms>
</Floor>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.