POST api/sensor/v2/log

Request Information

URI Parameters

None.

Body Parameters

Collection of SensorDataModel
NameDescriptionTypeAdditional information
DeviceId

integer

None.

DevicePassword

string

None.

SensorId

integer

None.

SensorPassword

string

None.

LogDate

string

None.

LogDateFormat

string

None.

LogEntry

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "DeviceId": 1,
    "DevicePassword": "sample string 2",
    "SensorId": 3,
    "SensorPassword": "sample string 4",
    "LogDate": "sample string 5",
    "LogDateFormat": "sample string 6",
    "LogEntry": "sample string 7"
  },
  {
    "DeviceId": 1,
    "DevicePassword": "sample string 2",
    "SensorId": 3,
    "SensorPassword": "sample string 4",
    "LogDate": "sample string 5",
    "LogDateFormat": "sample string 6",
    "LogEntry": "sample string 7"
  }
]

application/xml, text/xml

Sample:
<ArrayOfSensorDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BlackBee.Sensor.Models">
  <SensorDataModel>
    <DeviceId>1</DeviceId>
    <DevicePassword>sample string 2</DevicePassword>
    <LogDate>sample string 5</LogDate>
    <LogDateFormat>sample string 6</LogDateFormat>
    <LogEntry>sample string 7</LogEntry>
    <SensorId>3</SensorId>
    <SensorPassword>sample string 4</SensorPassword>
  </SensorDataModel>
  <SensorDataModel>
    <DeviceId>1</DeviceId>
    <DevicePassword>sample string 2</DevicePassword>
    <LogDate>sample string 5</LogDate>
    <LogDateFormat>sample string 6</LogDateFormat>
    <LogEntry>sample string 7</LogEntry>
    <SensorId>3</SensorId>
    <SensorPassword>sample string 4</SensorPassword>
  </SensorDataModel>
</ArrayOfSensorDataModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.