Add Event

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

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.

Path Params
string
required
Body Params
string
required
string
required
int32
int32
string
string
date
Defaults to Current time
Responses

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