events
Api reference content
get/api/events/{eventId}
Gets a events by its ID
Parameters
| Parameter | Place | Required | Description |
|---|---|---|---|
| eventId | path | required |
Responses
| Status | Description |
|---|---|
| 200 | application/json {
"id": "string",
"name": "string",
"file_id": "string",
"trigger": {
"mac": "string",
"sensor": "integer",
"type": "level | pulse_audio | pulse_time",
"duration": "double"
},
"action": [
{
"mac": "string",
"audio": "boolean",
"relays": "[double]"
}
],
"special_volume": "double"
} |
| 404 | application/json {
"errors": "[string]"
} |