Scenes & schedules

Change a scene

PUT/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.

Changes its name, show or brightness.

Path parameters

idstringrequired

A scene id.

Request body application/json

namestring
showobject

The show fields to set.

brightnessnumber

Responses

200OKapplication/json
idstringrequired
namestringrequired
showobject

The show fields this scene sets (see Show).

brightnessnumber
0 to 1
403Locked, or not allowed.application/json
errorstringrequired

What went wrong, in a sentence for people.

404No such id.application/json
errorstringrequired

What went wrong, in a sentence for people.

Request
curl -X PUT 'http://localhost:8080/api/scenes/party' \
  -H 'content-type: application/json' \
  -d '{
  "brightness": 0.5
}'
Response
{
  "id": "party",
  "name": "Party mode",
  "show": {
    "mode": "auto",
    "style": "party",
    "palette": "auto"
  },
  "brightness": 1
}
Edit on GitHub