POST /sensors/{id}
Renames a sensor, points it at another macro, or turns it on or off.
Details #
The body holds any of name, macroId and enabled. The place, tag or Focus a sensor waits for is set on the iPhone.
curl -s -X POST -H "Authorization: Bearer $TOKEN" -d '{"enabled": false}' http://127.0.0.1:48080/sensors/ID
Parameters #
curl --unix-socket "$SWITCHBOARD_HOME/engine.sock" -X POST http://localhost/sensors/{id}
Rename a sensor, point it at another macro, or turn it on or off. The Unix socket needs no token; loopback 127.0.0.1:48080 needs Authorization: Bearer <api-token>.