POST api/HC_TECH_PIR_

Request Information

URI Parameters

None.

Body Parameters

SensorJSON
NameDescriptionTypeAdditional information
id

string

None.

partition

string

None.

deviceId

string

None.

deviceTypeId

string

None.

time

string

None.

total

integer

None.

batteryLevel

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "id": "sample string 1",
  "partition": "sample string 2",
  "deviceId": "sample string 3",
  "deviceTypeId": "sample string 4",
  "time": "sample string 5",
  "total": 6,
  "batteryLevel": 7
}

application/xml, text/xml

Sample:
<SensorJSON xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApplication1.Controllers.EvolveDevices">
  <batteryLevel>7</batteryLevel>
  <deviceId>sample string 3</deviceId>
  <deviceTypeId>sample string 4</deviceTypeId>
  <id>sample string 1</id>
  <partition>sample string 2</partition>
  <time>sample string 5</time>
  <total>6</total>
</SensorJSON>

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 'SensorJSON'.

Response Information

Resource Description

None.