Browse the docs

PATCH /pending/{id}

Changes a waiting run: its time, inputs, heads-up or late policy.

Details #

Send any of at, inputs, warn and ifLate; the run is answered back. A new at is read the way POST /pending reads it, and the run gets a note: "rescheduled from 9:00 AM by you". The id can be its first few characters. A run that already started, ended or was cancelled answers 404.

curl -s -X PATCH -H "Authorization: Bearer $TOKEN" -d '{"at": "in 10m"}' http://127.0.0.1:48080/pending/3f9a1c2b

Parameters #

curl --unix-socket "$SWITCHBOARD_HOME/engine.sock" -X PATCH http://localhost/pending/{id}

Change a waiting run's time, inputs, heads-up or late policy. The Unix socket needs no token; loopback 127.0.0.1:48080 needs Authorization: Bearer <api-token>.

See also #