Add Event

📘

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

ParameterTypeRequiredDescription
namestringYesUnique string used for all instance of an event (e.g. "door_openned") and can be used to query event data or display widgets.
categorystringYesGroup multiple events together.
int_key_1number32bit integer
int_key_2number32bit integer
string_key_1string255 character string
string_key_2string255 character string
timestamptimestaOverride 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.

Language
Credentials
Header
Click Try It! to start a request and see the response here!