Skip to content

Receive device state report and publish to Kafka for drift detection
Stable

Request

Accepts a device state report and forwards it (as-is) to Kafka topic esper.device.device.state after enriching with tenant_id and device_id.

Security
device_apiKey
Path
idstring, (uuid)required

ID of the device

Bodyapplication/jsonrequired
event_tsnumber

Event timestamp in milliseconds since epoch

device_settingsobjectrequired

Partial settings payload containing only changed keys (sparse object)

property name*anyadditional property
cURL
curl -i -X PUT \
  'https://api.esper.io/_mock/openapi/v2/devices/{id}/devicestate' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "event_ts": 0,
    "device_settings": {}
  }'

Responses

Created

Bodyapplication/json
contentobject
Response
{ "content": {} }