Logo
Program smart lights API Documentation

Update Sensor State

PUT http://{{ip}}/api/{{username}}/sensors/2/state

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Content-Type
string




RESPONSES

status





Curl
curl -X PUT 'http://ip/api/ip/sensors/2/state' -H 'Content-Type: application/json' -d '{"status":0}'

ENDPOINTS