Logo
Program smart lights API Documentation

Create Sensor

POST http://{{ip}}/api/{{username}}/sensors

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Content-Type
string




RESPONSES

status





Curl
curl -X POST 'http://ip/api/username/sensors' -H 'Content-Type: application/json' -d '{"name":"Test Sensor","swversion":"1.0","modelid":"randomwid","type":"CLIPGenericStatus","uniqueid":"12345678","state":{"status":36000},"manufacturername":"Moldedbits"}'

ENDPOINTS