Lock
Remove the PIN
DEL
/api/lockAdmin. Needs an unlock token (
x-tempolight-token) while a PIN lock is set; without a lock, anyone can call it.Removes the PIN lock.
Responses
200OKapplication/json
lockedboolean403Locked, or not allowed.application/json
errorstringrequiredWhat went wrong, in a sentence for people.
Request
curl -X DELETE 'http://localhost:8080/api/lock'const res = await fetch("http://localhost:8080/api/lock", {
method: "DELETE",
});
const data = await res.json();
console.log(data);import requests
res = requests.delete(
"http://localhost:8080/api/lock",
)
print(res.json())Response
{
"locked": false
}{
"error": "Settings are locked. Unlock with the PIN in Settings."
}