Browse the docs

POST /limits/{id}/reset

Forgets what a macro's limited triggers have counted: runs this period, every-nth position, the cooldown.

Details #

The body may be {"index": 0} to reset one trigger (its place in when); without it every trigger of the macro starts again from zero. Answers {"reset": n}. This is what the inspector's Reset button calls, and the only way back for a limit set to ever.

curl -s -X POST -H "Authorization: Bearer $TOKEN" -d '{"index":0}' http://127.0.0.1:48080/limits/<macro id>/reset

Parameters #

curl --unix-socket "$SWITCHBOARD_HOME/engine.sock" -X POST http://localhost/limits/{id}/reset

Forget what a macro's limited triggers have counted. The Unix socket needs no token; loopback 127.0.0.1:48080 needs Authorization: Bearer <api-token>.

See also #