Log a Device Event
Trigger Device Event
Headers
Name
Type
Description
Request Body
Name
Type
Description
{
"error": {
"message": "Device with identifier 1 is not found or belong to another organization."
}
}{
"error": {
"message": "Event with provided code is not found."
}
}# curl command example:
$ curl -X POST -H "Content-Type: application/json" \
-H "Authorization: Bearer {accessToken}" \
-d '{"deviceId":1,"eventCode":"high_temp"}' \
https://fra1.blynk.cloud/api/v1/organization/device/trigger-event
$ curl -X POST -H "Content-Type: application/json" \
-H "Authorization: Bearer eIdWHQqRfFmvP5LDDh-IGxPUzi7I27HthzCPAVmS" \
-d '{"deviceId":1,"eventCode":"high_temp"}' \
https://fra1.blynk.cloud/api/v1/organization/device/trigger-eventLast updated
Was this helpful?

