Add events
POST/:customer_id/users/:uid/events
Add new events for a user
Request
Path Parameters
customer_id Customer Idrequired
Id of the tenant
uid uuidrequired
Id of the user
- application/json
Body
required
- Array [
- ]
events object[]required
time date-timerequired
Time at which the event happened, with timezone
sensor Sensorrequired
Name of the sensor which captured the event
metric object
value Valuenullablerequired
First value associated to this event
value_2 Value 2nullablerequired
Second value associated to this event
device_id uuidrequired
Id of the device the event originated from
Responses
- 200
- 400
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
message Messagerequired
invalid-events object[]nullablerequired
time date-timerequired
Time at which the event happened, with timezone
sensor Sensorrequired
Name of the sensor which captured the event
metric object
value Valuenullablerequired
First value associated to this event
value_2 Value 2nullablerequired
Second value associated to this event
{
"message": "string",
"invalid-events": [
{
"time": "2024-12-03T11:32:12.433Z",
"sensor": "string",
"metric": "cough",
"value": 0,
"value_2": 0
}
]
}
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
message Messagerequired
invalid-events object[]nullablerequired
time date-timerequired
Time at which the event happened, with timezone
sensor Sensorrequired
Name of the sensor which captured the event
metric object
value Valuenullablerequired
First value associated to this event
value_2 Value 2nullablerequired
Second value associated to this event
{
"message": "string",
"invalid-events": [
{
"time": "2024-12-03T11:32:12.433Z",
"sensor": "string",
"metric": "cough",
"value": 0,
"value_2": 0
}
]
}
Loading...