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 | Description |
---|---|
name | 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 | Group multiple events together. |
int_key_1 | Optional 32bit integer |
int_key_2 | Optional 32bit integer |
string_key_1 | Optional 255 character string |
string_key_2 | Optional 255 character string |
timestamp | Optional - 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.