POST api/Devices?decimalPlaces={decimalPlaces}

Converts the stored info to info for sending via API

Request Information

URI Parameters

NameDescriptionTypeAdditional information
decimalPlaces

Number of decimal places to return in the log information

integer

None.

Body Parameters

ConnectedDevice log to convert

ConnectedDevice_Log
NameDescriptionTypeAdditional information
DelayFromStart

Gets or sets the delay from start at time of reading

integer

None.

TimeToRun

Gets or sets the time to run at time of reading

integer

None.

ContainsScheduleInformation

boolean

None.

Latitude

Gets or sets the latitude of the device at time of log

decimal number

None.

Longitude

Gets or sets the longitude of the device at time of log

decimal number

None.

DeviceID

Gets or sets the device ID

globally unique identifier

None.

DeviceType

Gets or sets the device type

OwnerType

None.

ReadingValue

Gets or sets the reading

decimal number

None.

DirectoryValue

Directory information, typically used for Images

string

None.

FailedReading

Returns whether or not the Reading in this Log is deemed a "failed" reading, i.e. the device is in error or is unreachable, or the reading itself is missing

boolean

None.

ReadingDt

Gets the reading time

date

None.

ReadingType

Gets or sets the reading type

ReadingType

None.

ReadingUnitType

Gets or sets the reading unit type

ReadingUnitType

None.

ID

Gets ID for this record

globally unique identifier

None.

IntID

Gets Integer ID for this record

integer

None.

ObjectInfo

Retrieves basic information about this object in the ObjectInfo class

ObjectInfo

None.

Request Formats

application/json, text/json, text/html

Sample:
{
  "DelayFromStart": 1,
  "TimeToRun": 2,
  "ContainsScheduleInformation": true,
  "Latitude": 3.0,
  "Longitude": 4.0,
  "DeviceID": "cc6fc221-289a-46e4-9261-a19b7ba75b9e",
  "DeviceType": 10,
  "ReadingValue": 1.0,
  "DirectoryValue": "sample string 6",
  "FailedReading": false,
  "ReadingDt": "2025-11-09T21:45:01.8504843+10:00",
  "ReadingType": {
    "InternalName": "sample string 1",
    "ExternalName": "sample string 2",
    "Value": 3,
    "Description": "sample string 4",
    "ID": "94d1523b-02d5-411e-9c73-eb2c1f6d63ae",
    "IntID": 0,
    "ObjectInfo": {
      "ID": "94d1523b-02d5-411e-9c73-eb2c1f6d63ae",
      "IntID": 0,
      "Type": -1,
      "Valid": false,
      "IsEmpty": false
    }
  },
  "ReadingUnitType": {
    "Abbreviation": "sample str",
    "InternalName": "sample string 2",
    "ExternalName": "sample string 3",
    "Value": 4,
    "Description": "sample string 5",
    "ID": "8794c975-d60a-487c-9623-62cf564a34ca",
    "IntID": 0,
    "ObjectInfo": {
      "ID": "8794c975-d60a-487c-9623-62cf564a34ca",
      "IntID": 0,
      "Type": -1,
      "Valid": false,
      "IsEmpty": false
    }
  },
  "ID": "5483275b-c68d-492e-a358-f996c1148b97",
  "IntID": 0,
  "ObjectInfo": {
    "ID": "5483275b-c68d-492e-a358-f996c1148b97",
    "IntID": 0,
    "Type": -1,
    "Valid": false,
    "IsEmpty": false
  }
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Converted (loaded) device log entry

ConnectedDevice_Log_Entry
NameDescriptionTypeAdditional information
DelayFromStart

The delay from the start

integer

None.

TimeToRun

The time to run

integer

None.

Latitude

The Latitude of the Device at the time of the log entry.

decimal number

None.

Longitude

The Longitude of the Device at the time of the log entry.

decimal number

None.

ID

ID of the device log entry

integer

None.

DeviceType

The Type of Device this log entry is for (Connected or Calculated)

OwnerType

None.

Date

Date and time of the device log entry

date

None.

Value

The value of the reading, as a string

string

None.

NumericalValue

The value of the reading

decimal number

None.

ReadingType

The reading type

integer

None.

ReadingUnitType

The reading unit type

integer

None.

Response Formats

application/json, text/json, text/html

Sample:
{
  "DelayFromStart": 1,
  "TimeToRun": 2,
  "Latitude": 3.0,
  "Longitude": 4.0,
  "ID": 5,
  "DeviceType": 10,
  "Date": "2025-11-09T21:45:01.9129581+10:00",
  "Value": "1.0",
  "NumericalValue": 1.0,
  "ReadingType": 8,
  "ReadingUnitType": 9
}