{
"triggers": [
{
"type": "string",
"sensorId": "string",
"value": "string",
"time": 0
}
],
"actions": [
{
"type": "string",
"data": {
"title": "string",
"message": "string",
"deviceId": "string",
"state": "string"
}
}
],
"conditions": [
{
"type": "string",
"deviceId": "string",
"state": "string"
}
]
}curl --location --request PATCH '/automation/update/' \
--header 'Authorization: token' \
--header 'Content-Type: application/json' \
--data-raw '{
"triggers": [
{
"type": "string",
"sensorId": "string",
"value": "string",
"time": 0
}
],
"actions": [
{
"type": "string",
"data": {
"title": "string",
"message": "string",
"deviceId": "string",
"state": "string"
}
}
],
"conditions": [
{
"type": "string",
"deviceId": "string",
"state": "string"
}
]
}'{}