Layouts
Lighting-Ressourcen interagieren mit dem canvas und den aktuell abgespielten Effekten. Hier können Sie den aktuellen Effekt einsehen, ihn wechseln, sein Preset ändern oder alle aktuell installierten Effekte des Benutzers durchlaufen.
| Methode | Endpunkt |
|---|---|
| GET | scenes/current_layout |
| PATCH | scenes/current_layout |
| GET | scenes/layouts |
Aktuelles Layout abrufen
Abschnitt betitelt „Aktuelles Layout abrufen“Ruft Informationen über das aktuelle layout ab.
curl http://localhost:16038/api/v1/scenes/current_layout{ "api_version": "1.0", "data": { "current_layout": { "id": "My Layout 1", "type": "layout" } }, "id": 10, "method": "/api/v1/scenes/current_layout", "params": {}, "status": "ok"}Aktuelles Layout setzen
Abschnitt betitelt „Aktuelles Layout setzen“Setzt das aktuell aktive layout.
curl -X PATCH -d "{\"layout\":\"My Layout 1\"}" http://localhost:16038/api/v1/scenes/current_layout{ "api_version": "1.0", "data": { "current_layout": { "id": "My Layout 1", "type": "layout" } }, "id": 3, "method": "/api/v1/scenes/current_layout", "params": { "body": { "layout": "My Layout 1" } }, "status": "ok"}Alle Layouts abrufen
Abschnitt betitelt „Alle Layouts abrufen“Gibt eine Liste aller verfügbaren layouts des Benutzers zurück.
curl http://localhost:16038/api/v1/scenes/layouts{ "api_version": "1.0", "data": { "items": [ { "id": "My Layout 1", "type": "layout" }, { "id": "My Layout 2", "type": "layout" } ], "type": "layouts" }, "id": 11, "method": "/api/v1/scenes/layouts", "params": {}, "status": "ok"}