POST sites/{id}/channels/{channelId}/data

Sends a values corresponding to the specific channel, in this case the channel id parameter will override the values sent in the body to identify the channel.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

channelId

integer

Required

Body Parameters

Collection of DataPointOffsetVM
NameDescriptionTypeAdditional information
DataValue

The value of the channel

string

None.

DataTime

Represents the moment in time when the value was measured. Expects an ISO string

date

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "DataValue": "sample string 1",
    "DataTime": "2024-07-27T01:00:21.5996007-08:00"
  },
  {
    "DataValue": "sample string 1",
    "DataTime": "2024-07-27T01:00:21.5996007-08:00"
  }
]

application/xml, text/xml

Sample:
<ArrayOfDataPointOffsetVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FW.WebApi2.ViewModels">
  <DataPointOffsetVM>
    <DataTime xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
      <d3p1:DateTime>2024-07-27T09:00:21.5996007Z</d3p1:DateTime>
      <d3p1:OffsetMinutes>-480</d3p1:OffsetMinutes>
    </DataTime>
    <DataValue>sample string 1</DataValue>
  </DataPointOffsetVM>
  <DataPointOffsetVM>
    <DataTime xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
      <d3p1:DateTime>2024-07-27T09:00:21.5996007Z</d3p1:DateTime>
      <d3p1:OffsetMinutes>-480</d3p1:OffsetMinutes>
    </DataTime>
    <DataValue>sample string 1</DataValue>
  </DataPointOffsetVM>
</ArrayOfDataPointOffsetVM>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponseVM
NameDescriptionTypeAdditional information
ResultCode

FwApiResultCode

None.

ResultMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ResultCode": 0,
  "ResultMessage": "sample string 1"
}

application/xml, text/xml

Sample:
<ResponseVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FW.WebApi2.ViewModels">
  <ResultCode>Ok</ResultCode>
  <ResultMessage>sample string 1</ResultMessage>
</ResponseVM>