POST api/Devices

Creates a new Device

Request Information

URI Parameters

None.

Body Parameters

The device being added

Add_ConnectedDeviceStruct
NameDescriptionTypeAdditional information
NodeChannel

integer

None.

SerialNumber

string

None.

Type

integer

None.

SignalType

SignalType

None.

Controllable

boolean

None.

Schedulable

boolean

None.

Threshold

decimal number

None.

ReadingOverride

string

None.

Specifications

string

None.

Latitude

decimal number

None.

Longitude

decimal number

None.

Code

string

None.

Allowance

integer

None.

DefaultValidationBeforeSpan

time interval

None.

DefaultValidationBeforeLimit

integer

None.

DefaultValidationBeforeID

integer

None.

DefaultValidationBeforeEnable

boolean

None.

DefaultValidationBeforeName

string

None.

DefaultValidationDuringSpan

time interval

None.

DefaultValidationDuringLimit

integer

None.

DefaultValidationDuringID

integer

None.

DefaultValidationDuringEnable

boolean

None.

DefaultValidationDuringName

string

None.

DefaultValidationAfterSpan

time interval

None.

DefaultValidationAfterLimit

integer

None.

DefaultValidationAfterID

integer

None.

DefaultValidationAfterEnable

boolean

None.

DefaultValidationAfterName

string

None.

Name

string

None.

Description

string

None.

DataNodeID

integer

None.

DecimalPlaces

integer

None.

ReadingType

integer

None.

ReadingUnitType

integer

None.

Category

string

None.

ReadingMinValue

decimal number

None.

ReadingMaxValue

decimal number

None.

Lifespan

integer

None.

BandActionsEnabled

boolean

None.

ReadingValueBands

Collection of ReadingValueBandStruct

None.

ConfiguredAlerts

Collection of AddUpdate_ConfiguredAlert

None.

Request Formats

application/json, text/json, text/html

Sample:
{
  "NodeChannel": 1,
  "SerialNumber": "sample string 4",
  "Type": 1,
  "SignalType": 0,
  "Controllable": true,
  "Schedulable": true,
  "Threshold": 1.0,
  "ReadingOverride": "sample string 5",
  "Specifications": "sample string 6",
  "Latitude": 1.0,
  "Longitude": 1.0,
  "Code": "sample string 7",
  "Allowance": 1,
  "DefaultValidationBeforeSpan": "00:00:00.1234567",
  "DefaultValidationBeforeLimit": 1,
  "DefaultValidationBeforeID": 1,
  "DefaultValidationBeforeEnable": true,
  "DefaultValidationBeforeName": "sample string 8",
  "DefaultValidationDuringSpan": "00:00:00.1234567",
  "DefaultValidationDuringLimit": 1,
  "DefaultValidationDuringID": 1,
  "DefaultValidationDuringEnable": true,
  "DefaultValidationDuringName": "sample string 9",
  "DefaultValidationAfterSpan": "00:00:00.1234567",
  "DefaultValidationAfterLimit": 1,
  "DefaultValidationAfterID": 1,
  "DefaultValidationAfterEnable": true,
  "DefaultValidationAfterName": "sample string 10",
  "Name": "sample string 11",
  "Description": "sample string 12",
  "DataNodeID": 1,
  "DecimalPlaces": 1,
  "ReadingType": 1,
  "ReadingUnitType": 1,
  "Category": "sample string 13",
  "ReadingMinValue": 1.0,
  "ReadingMaxValue": 1.0,
  "Lifespan": 1,
  "BandActionsEnabled": true,
  "ReadingValueBands": [
    {
      "ID": 1,
      "DisplayIndex": 2,
      "Description": "sample string 3",
      "BottomValue": 4.0,
      "TopValue": 5.0,
      "Color": "sample string 6",
      "AlertTriggerType": 0,
      "AlertType": 0,
      "AlertResendWaitTime": 7,
      "MaxAlertRepeat": 8,
      "OtherAlertTriggerValue": "sample string 9",
      "AutoAcknowledge": true,
      "NotifyAcknowledge": true,
      "ActionType": 0,
      "ActionTargetType": 10,
      "ActionTargetID": 12,
      "ActionValue": 13.0,
      "AlertCountRequired": 14
    },
    {
      "ID": 1,
      "DisplayIndex": 2,
      "Description": "sample string 3",
      "BottomValue": 4.0,
      "TopValue": 5.0,
      "Color": "sample string 6",
      "AlertTriggerType": 0,
      "AlertType": 0,
      "AlertResendWaitTime": 7,
      "MaxAlertRepeat": 8,
      "OtherAlertTriggerValue": "sample string 9",
      "AutoAcknowledge": true,
      "NotifyAcknowledge": true,
      "ActionType": 0,
      "ActionTargetType": 10,
      "ActionTargetID": 12,
      "ActionValue": 13.0,
      "AlertCountRequired": 14
    }
  ],
  "ConfiguredAlerts": [
    {
      "ID": 1,
      "Enabled": true,
      "OwnerID": 1,
      "OwnerType": 10,
      "AlertType": 0,
      "MaxRepeats": 1,
      "WaitTime": 1,
      "Type": 0,
      "CheckInControlled": true,
      "Name": "sample string 3",
      "Description": "sample string 4"
    },
    {
      "ID": 1,
      "Enabled": true,
      "OwnerID": 1,
      "OwnerType": 10,
      "AlertType": 0,
      "MaxRepeats": 1,
      "WaitTime": 1,
      "Type": 0,
      "CheckInControlled": true,
      "Name": "sample string 3",
      "Description": "sample string 4"
    }
  ]
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

The response containing the newly created device

GetDevicesResponse
NameDescriptionTypeAdditional information
Devices

Array of Devices

Collection of ConnectedDeviceStruct

None.

Messages

Array of messages

Collection of Message

None.

ServerInformation

Relevant information regarding the Server

ServerInformation

None.

VersionInformation

Relevant information regarding the API's version

VersionInformation

None.

Response Formats

application/json, text/json, text/html

Sample:
{
  "Devices": [
    {
      "NodeChannel": 1,
      "SerialNumber": "sample string 1",
      "Type": 1,
      "TypeName": "sample string 2",
      "SignalType": 0,
      "Controllable": true,
      "Schedulable": true,
      "Threshold": 1.0,
      "ReadingOverride": "sample string 3",
      "Specifications": "sample string 4",
      "Latitude": 1.0,
      "Longitude": 1.0,
      "Code": "sample string 5",
      "Allowance": 1,
      "DefaultValidationBeforeSpan": "00:00:00.1234567",
      "DefaultValidationBeforeLimit": 1,
      "DefaultValidationBeforeID": 1,
      "DefaultValidationBeforeEnable": true,
      "DefaultValidationBeforeName": "sample string 6",
      "DefaultValidationDuringSpan": "00:00:00.1234567",
      "DefaultValidationDuringLimit": 1,
      "DefaultValidationDuringID": 1,
      "DefaultValidationDuringEnable": true,
      "DefaultValidationDuringName": "sample string 7",
      "DefaultValidationAfterSpan": "00:00:00.1234567",
      "DefaultValidationAfterLimit": 1,
      "DefaultValidationAfterID": 1,
      "DefaultValidationAfterEnable": true,
      "DefaultValidationAfterName": "sample string 8",
      "ID": 9,
      "Name": "sample string 10",
      "Description": "sample string 11",
      "DataNodeID": 1,
      "DataNodeName": "sample string 12",
      "DecimalPlaces": 1,
      "ReadingType": 1,
      "ReadingUnitType": 1,
      "Category": "sample string 13",
      "Reading": {
        "DelayFromStart": 1,
        "TimeToRun": 2,
        "LastReading": "2025-11-09T21:24:37.2592026+10:00",
        "Type": 4,
        "Units": 5,
        "Value": "1.0",
        "NumericalValue": 1.0,
        "Notes": "sample string 6"
      },
      "ReadingMinValue": 1.0,
      "ReadingMaxValue": 1.0,
      "Lifespan": 1,
      "BandActionsEnabled": true,
      "ReadingValueBands": [
        {
          "ID": 1,
          "DisplayIndex": 2,
          "Description": "sample string 3",
          "BottomValue": 4.0,
          "TopValue": 5.0,
          "Color": "sample string 6",
          "AlertTriggerType": 0,
          "AlertType": 0,
          "AlertResendWaitTime": 7,
          "MaxAlertRepeat": 8,
          "OtherAlertTriggerValue": "sample string 9",
          "AutoAcknowledge": true,
          "NotifyAcknowledge": true,
          "ActionType": 0,
          "ActionTargetType": 10,
          "ActionTargetID": 12,
          "ActionValue": 13.0,
          "AlertCountRequired": 14
        },
        {
          "ID": 1,
          "DisplayIndex": 2,
          "Description": "sample string 3",
          "BottomValue": 4.0,
          "TopValue": 5.0,
          "Color": "sample string 6",
          "AlertTriggerType": 0,
          "AlertType": 0,
          "AlertResendWaitTime": 7,
          "MaxAlertRepeat": 8,
          "OtherAlertTriggerValue": "sample string 9",
          "AutoAcknowledge": true,
          "NotifyAcknowledge": true,
          "ActionType": 0,
          "ActionTargetType": 10,
          "ActionTargetID": 12,
          "ActionValue": 13.0,
          "AlertCountRequired": 14
        }
      ],
      "ConfiguredAlerts": [
        {
          "ID": 1,
          "Enabled": true,
          "Name": "sample string 3",
          "Description": "sample string 4",
          "AlertType": 0,
          "MaxRepeats": 5,
          "WaitTime": 6,
          "OwnerID": 7,
          "OwnerType": 10,
          "Type": 0,
          "CheckInControlled": true
        },
        {
          "ID": 1,
          "Enabled": true,
          "Name": "sample string 3",
          "Description": "sample string 4",
          "AlertType": 0,
          "MaxRepeats": 5,
          "WaitTime": 6,
          "OwnerID": 7,
          "OwnerType": 10,
          "Type": 0,
          "CheckInControlled": true
        }
      ]
    },
    {
      "NodeChannel": 1,
      "SerialNumber": "sample string 1",
      "Type": 1,
      "TypeName": "sample string 2",
      "SignalType": 0,
      "Controllable": true,
      "Schedulable": true,
      "Threshold": 1.0,
      "ReadingOverride": "sample string 3",
      "Specifications": "sample string 4",
      "Latitude": 1.0,
      "Longitude": 1.0,
      "Code": "sample string 5",
      "Allowance": 1,
      "DefaultValidationBeforeSpan": "00:00:00.1234567",
      "DefaultValidationBeforeLimit": 1,
      "DefaultValidationBeforeID": 1,
      "DefaultValidationBeforeEnable": true,
      "DefaultValidationBeforeName": "sample string 6",
      "DefaultValidationDuringSpan": "00:00:00.1234567",
      "DefaultValidationDuringLimit": 1,
      "DefaultValidationDuringID": 1,
      "DefaultValidationDuringEnable": true,
      "DefaultValidationDuringName": "sample string 7",
      "DefaultValidationAfterSpan": "00:00:00.1234567",
      "DefaultValidationAfterLimit": 1,
      "DefaultValidationAfterID": 1,
      "DefaultValidationAfterEnable": true,
      "DefaultValidationAfterName": "sample string 8",
      "ID": 9,
      "Name": "sample string 10",
      "Description": "sample string 11",
      "DataNodeID": 1,
      "DataNodeName": "sample string 12",
      "DecimalPlaces": 1,
      "ReadingType": 1,
      "ReadingUnitType": 1,
      "Category": "sample string 13",
      "Reading": {
        "DelayFromStart": 1,
        "TimeToRun": 2,
        "LastReading": "2025-11-09T21:24:37.2592026+10:00",
        "Type": 4,
        "Units": 5,
        "Value": "1.0",
        "NumericalValue": 1.0,
        "Notes": "sample string 6"
      },
      "ReadingMinValue": 1.0,
      "ReadingMaxValue": 1.0,
      "Lifespan": 1,
      "BandActionsEnabled": true,
      "ReadingValueBands": [
        {
          "ID": 1,
          "DisplayIndex": 2,
          "Description": "sample string 3",
          "BottomValue": 4.0,
          "TopValue": 5.0,
          "Color": "sample string 6",
          "AlertTriggerType": 0,
          "AlertType": 0,
          "AlertResendWaitTime": 7,
          "MaxAlertRepeat": 8,
          "OtherAlertTriggerValue": "sample string 9",
          "AutoAcknowledge": true,
          "NotifyAcknowledge": true,
          "ActionType": 0,
          "ActionTargetType": 10,
          "ActionTargetID": 12,
          "ActionValue": 13.0,
          "AlertCountRequired": 14
        },
        {
          "ID": 1,
          "DisplayIndex": 2,
          "Description": "sample string 3",
          "BottomValue": 4.0,
          "TopValue": 5.0,
          "Color": "sample string 6",
          "AlertTriggerType": 0,
          "AlertType": 0,
          "AlertResendWaitTime": 7,
          "MaxAlertRepeat": 8,
          "OtherAlertTriggerValue": "sample string 9",
          "AutoAcknowledge": true,
          "NotifyAcknowledge": true,
          "ActionType": 0,
          "ActionTargetType": 10,
          "ActionTargetID": 12,
          "ActionValue": 13.0,
          "AlertCountRequired": 14
        }
      ],
      "ConfiguredAlerts": [
        {
          "ID": 1,
          "Enabled": true,
          "Name": "sample string 3",
          "Description": "sample string 4",
          "AlertType": 0,
          "MaxRepeats": 5,
          "WaitTime": 6,
          "OwnerID": 7,
          "OwnerType": 10,
          "Type": 0,
          "CheckInControlled": true
        },
        {
          "ID": 1,
          "Enabled": true,
          "Name": "sample string 3",
          "Description": "sample string 4",
          "AlertType": 0,
          "MaxRepeats": 5,
          "WaitTime": 6,
          "OwnerID": 7,
          "OwnerType": 10,
          "Type": 0,
          "CheckInControlled": true
        }
      ]
    }
  ],
  "Messages": [
    {
      "Severity": 0,
      "MessageCode": 1,
      "CodeDesc": 2,
      "MessageText": "sample string 3",
      "RecordNumber": 4
    },
    {
      "Severity": 0,
      "MessageCode": 1,
      "CodeDesc": 2,
      "MessageText": "sample string 3",
      "RecordNumber": 4
    }
  ],
  "ServerInformation": {
    "CurrentTimeUTC": "2025-11-09T21:24:37.2592026+10:00",
    "BuildDateUTC": "2025-11-09T21:24:37.2592026+10:00"
  },
  "VersionInformation": {
    "Major": 1,
    "Minor": 8,
    "Hotfix": 0,
    "Beta": true,
    "Version": "1.8.0.BETA"
  }
}