Scenes & schedules
Delete a scene
DEL
/api/scenes/{id}Guest area “scenes”. Open unless a PIN lock is set and guests aren't allowed this area (
settings.guest.scenes); then it needs an unlock token.Deletes it (no error when it doesn't exist).
Path parameters
idstringrequiredA scene id.
Responses
200OKapplication/json
oktruerequired403Locked, or not allowed.application/json
errorstringrequiredWhat went wrong, in a sentence for people.
Request
curl -X DELETE 'http://localhost:8080/api/scenes/id'const res = await fetch("http://localhost:8080/api/scenes/id", {
method: "DELETE",
});
const data = await res.json();
console.log(data);import requests
res = requests.delete(
"http://localhost:8080/api/scenes/id",
)
print(res.json())Response
{
"ok": true
}{
"error": "Settings are locked. Unlock with the PIN in Settings."
}