Backup & updates

Update and restart

POST/api/update
Admin. Needs an unlock token (x-tempolight-token) while a PIN lock is set; without a lock, anyone can call it.

Pulls the new version and restarts Tempolight (installs made with git or the installer). 409 when it can't now.

Responses

200OKapplication/json
object

What was done.

400The body isn't valid JSON, or a value is wrong.application/json
errorstringrequired

What went wrong, in a sentence for people.

403Locked, or not allowed.application/json
errorstringrequired

What went wrong, in a sentence for people.

409
Request
curl -X POST 'http://localhost:8080/api/update'
Response
{}
Edit on GitHub