Skip to content

Layouts

Lighting resources interact with the canvas and currently playing effects. Here you can see the current effect, change it, change it’s preset, or iterate through all currently installed effects for the user.

MethodEndpoint
GETscenes/current_layout
PATCHscenes/current_layout
GETscenes/layouts

Fetches information about the current Layout.

Terminal window
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"
}

Sets the currently active Layout.

Terminal window
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"
}

Gets a list of all available Layouts the user has.

Terminal window
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"
}