Space#
Note
The endpoints listed on this page require a project to be loaded on the controller.
Methods#
GET#
Returns data about the spaces in the project and their state on the controller.
GET /api/space[?num=spaceNum]
num can be used to filter which space is returned and is expected to be a single number.
Returns a JSON object with a single space object with the following attributes:
Attribute |
Value Type |
Description |
Value Example |
|---|---|---|---|
|
integer |
Space number |
|
|
string |
Space name |
|
|
boolean |
Whether the space has been modified. |
|
|
boolean |
Whether the space has been overridden. |
|
|
integer |
The current intensity master value for the space |
|
|
object |
The current active scene in the space |
|
|
array of objects |
A list of the available scenes in the space. |
|
|
array of objects |
A list of the child spaces of this space. |
|
POST#
Control a space in the project.
POST /api/space
Payload is a JSON object with the following attributes:
Attribute |
Value Type |
Description |
Value Example |
|---|---|---|---|
|
string |
The space number to perform the action on. |
|
|
string |
The action to perform. |
|
|
float or string containing a bounded integer |
Optional. The master level to apply. |
|
For example, to set the intensity master to 42.2% for space 2, the request payload is:
{
"num": 2,
"action": "master_intensity",
"level": 0.422
}
For example, to recall the off scene in space 2, the request payload is:
{
"num": 2,
"action": "off"
}