REST API (system)
REST API (system) will be reduced in its feature set, as it would introduce duplicate functions as the new control API. Use Control API instead for new integrations of the following calls instead.
The following calls are deprecated within firmware version 10.2 and will be removed soon:
- Load Mixer Snapshot
- Save Mixer Snapshot
- Load Channel Snapshot
- Save Mixer Snapshot
- Upload Mixer Snapshot
- Download Mixer Snapshot
- Upload Channel Snapshot
- Download Channel Snapshot
The DHD REST API (system) comes with Firmware Version 9.1 and higher. It is meant to provide easy access to useful functionalities of the console and is designed primarily to write. Reading values is only possible for global labels. This is to prevent polling.
DHD REST API is restricted to an average of one request per second, but can handle bursts of up to 10 requests per second. After such a burst of e.g. 10 requests, you will have to wait 10 seconds before the server accepts any new calls. If you have a Burst of e.g. 5 requests, you will have to wait 5 seconds. During this 'grace period', the server will respond with code '423 (Locked)'.
All examples can vary on different platforms and shell / terminal environments. Please check for the correct syntax on your environment.
REST API must be enabled in Toolbox, [Device Node] > 'Web Apps' Tab, REST API checkbox.
Labels
Set Global Label
Set a single global label
Action path | /action/setgloballabel |
---|---|
Types possible | Get, Post |
Params
Key | Value Type | Example | Description |
---|---|---|---|
ObjectID | Int | 1 | Global label ID |
Name | String | test | New global label value |
Token | String | XXX-XXX-XXX | User authentication (optional) |
Example Request
curl -L -X GET 'http://1.2.3.4/action/setgloballabel?ObjectID=1&Name=test'
Get Global Label
Get a single global label
Action path | /action/getgloballabel |
---|---|
Types possible | Get, Post |
Params
Key | Value Type | Example | Description |
---|---|---|---|
ObjectID | Int | _ | Global label ID |
Token | String | XXX-XXX-XXX | User authentication (optional) |
Response
The response is the label value in plain text.
Example Request
curl -L -X GET 'http://1.2.3.4/action/getgloballabel?ObjectID=1'
Reset Global Label
Reset a single global label to Toolbox default.
Action path | /action/setgloballabel |
---|---|
Types possible | Get, Post |
Params
Key | Value Type | Example | Description |
---|---|---|---|
ObjectID | Int | 1 | Global label ID |
Name | String | _ | Has to be empty |
Token | String | XXX-XXX-XXX | User authentication (optional) |
Example Request
curl -L -X GET 'http://1.2.3.4/action/setgloballabel?ObjectID=1&Name='
Set Channel Label
Set a single channel label
Action path | /action/setchannellabel |
---|---|
Types possible | Get, Post |
Params
Key | Value Type | Example | Description |
---|---|---|---|
ObjectID | Int | 1 | Fader Channel ID |
Name | String | test | New channel label value |
Token | String | XXX-XXX-XXX | User authentication (optional) |
Example Request
curl -L -X GET 'http://1.2.3.4/action/setchannellabel?ObjectID=1&Name=test'
Reset Channel Label
Reset a single channel label to Toolbox default.
Action path | /action/setchannellabel |
---|---|
Types possible | Get, Post |