Live test: Send data to a device

This endpoint sends data to one or more variables on a device.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Body examples:

{
  "temperature": 10,
  "humidity": 90,
  "pressure": 78
}
{
  "temperature": {
    "value": 10,
    "timestamp": 1634311791000,
    "context": {
      "status": "cold"
    }
  },
  "humidity": {
    "value": 90,
    "timestamp": 1634311791000,
    "context": {
      "status": "High humidity"
    }
  },
  "pressure": {
    "value": 78,
    "timestamp": 1634311791000,
    "context": {
      "status": "Normal"
    }
  }
}
{
  "position": {
    "value": 1,
    "context": {
      "lat": "6.5423",
      "lng": "-70.5783"
    }
  }
}
{
  "temperature": [{
    "value": 10,
    "timestamp": 1702933911000
  },
  {
    "value": 12,
    "timestamp": 1702933912000
  }]
}
Path Params
string
required

The API label of the device to which data will be sent. Can be found in the device's left-side panel, below "icon".

Query Params
string

The token to authenticate the request. Supported but not recommended. It's recommended to use the X-Auth-Token header instead.

string

Timestamp (in milliseconds POSIX format). When present, this timestamp will be applied to all dots in the body unless a local timestamp is sent.

string

Device Type label to be applied to the device if it doesn't exist yet.

boolean

When set to "true" then an additional "_status" object will appear in the response, containing the IDs of the device and variables, as well as a "new" field indicating whether they were just created or not. Example:

{
"_status": {
"_datasource": {
"id": "61d8a6731d84726e96dba805",
"new": false
},
"temperature": {
"id": "61d8a6751d84726d00e5b7b8",
"new": true
}
},
"temperature": [
{
"status_code": 201
}
]
}

Responses
200

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json