post https://entry.xyte.io/v1/devices//events
Use the hub_url received in the registration response as your base URL.
This API requires the device to authenticate, see Device Authentication.
Add a new event to the Device Events Log.
Request
Parameter information
Parameter | Type | Required | Description |
---|---|---|---|
name | string | Yes | Unique string used for all instance of an event (e.g. "door_openned") and can be used to query event data or display widgets. |
category | string | Yes | Group multiple events together. |
int_key_1 | number | 32bit integer | |
int_key_2 | number | 32bit integer | |
string_key_1 | string | 255 character string | |
string_key_2 | string | 255 character string | |
timestamp | timesta | Override timestamp to specify event happened in the past |
Return Data
{ "status": true }
Notes
Events only work for claimed devices. Calling the API for unclaimed device will return success without adding the event.