POST /pending/{id}/restore
Undoes a Skip or Cancel: the run waits again for its time.
Details #
Puts a cancelled or skipped run back to waiting and answers it. Use the whole id, as GET /pending?all=1 lists it. A run whose time has already passed answers 400 (it would only start at once), and so does one whose key another waiting run has taken since. Anything that wasn't cancelled or skipped answers 404.
curl -s -X POST -H "Authorization: Bearer $TOKEN" http://127.0.0.1:48080/pending/3f9a1c2b4d5e6f70/restore
Parameters #
curl --unix-socket "$SWITCHBOARD_HOME/engine.sock" -X POST http://localhost/pending/{id}/restore
Undo a skipped or cancelled run: it waits again. The Unix socket needs no token; loopback 127.0.0.1:48080 needs Authorization: Bearer <api-token>.