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 DataPointVM
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": "2022-07-01T20:49:50.4132019-08:00"
  },
  {
    "DataValue": "sample string 1",
    "DataTime": "2022-07-01T20:49:50.4132019-08:00"
  }
]

application/xml, text/xml

Sample:
<ArrayOfDataPointVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FW.WebApi2.ViewModels">
  <DataPointVM>
    <DataTime>2022-07-01T20:49:50.4132019-08:00</DataTime>
    <DataValue>sample string 1</DataValue>
  </DataPointVM>
  <DataPointVM>
    <DataTime>2022-07-01T20:49:50.4132019-08:00</DataTime>
    <DataValue>sample string 1</DataValue>
  </DataPointVM>
</ArrayOfDataPointVM>

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>