Input Commands
Data controllers are also referred to as inputs and/or profiles. called an input. These commands allow you to creating, modify, and attach profiles and data controllers.
API access: Full API Access (Enterprise, or Broadcast with the Full API Access add-on), on every connection.
Read the profile information for all inputs..
successful operation
bad request
GET /api/command/getProfileList HTTP/1.1
Host: 127.0.0.1:9022
Accept: */*
{
"result": {
"command": "getProfileList",
"inputs": [
{
"name": "Google: Sheets.Sheet 1"
}
],
"profiles": [
{
"name": "Google: Sheets.Sheet 1"
}
],
"reply": "getProfileList",
"success": true
}
}API access: Over HTTP and TCP, this command needs Full API Access. Over the WebSocket API, Broadcast can use it on a title that has an input assigned to it, and Enterprise can use it on any title.
Assign an input to the title.
optional id to track this command, will be returned in the response
optional: UUID of title/layer to operate on
optional: Name (or UUID) of the title to operate on.
Testoptional: Input name, used to select the title(s) to operate on
inputNamewhen 1, the new input will be combined with existing inputs on the title
successful operation
bad request
GET /api/command/setTitleInput HTTP/1.1
Host: 127.0.0.1:9022
Accept: */*
{
"result": {
"command": "setTitleInput",
"reply": "setTitleInput",
"success": true
}
}API access: Over HTTP and TCP, this command needs Full API Access. Over the WebSocket API, Broadcast can use it on a title that has an input assigned to it, and Enterprise can use it on any title.
Remove an input from the title.
optional id to track this command, will be returned in the response
optional: UUID of title/layer to operate on
optional: Name (or UUID) of the title to operate on. Either title name or id are required.
Testrequired: Input name to remove from the title.
inputNamesuccessful operation
bad request
GET /api/command/removeTitleInput?input=text HTTP/1.1
Host: 127.0.0.1:9022
Accept: */*
{
"result": {
"command": "setTitleInput",
"reply": "setTitleInput",
"success": true
}
}API access: Over HTTP and TCP, this command needs Full API Access. Over the WebSocket API, Broadcast can use it on a title that has an input assigned to it, and Enterprise can use it on any title.
Connects a specific input profile to a title. It works exactly like setTitleInput except this command allows you to use 'input' to find a title by input while that one reuires the use of title name/id.
Because this endpoint doesn't use any variables, it can also be accessed using a GET request.
optional id to track this command, will be returned in the response
optional: UUID of title/layer to operate on
{218f46f9-e881-49a8-ab17-03c8f9cc8461}optional: Name (or UUID) of the title to operate on.
optional: Input name, used to select the title(s) to operate on
set to 1 to merge the new input with existing inputs
Name of profile (data controller) to add to the found title(s)
Test: Profile Namesuccessful operation
bad request
GET /api/command/attachProfile HTTP/1.1
Host: 127.0.0.1:9022
Accept: */*
{
"result": {
"command": "attachProfile",
"error": "title not found",
"id": "{218f46f9-e881-49a8-ab17-03c8f9cc8461}",
"reply": "attachProfile",
"success": true
}
}API access: Full API Access (Enterprise, or Broadcast with the Full API Access add-on), on every connection.
Renames an input controller.
optional id to track this command, will be returned in the response
Name of input / profile to change.
Test: Input Name 1New name to assign to it.
Test: Dog Walker Mark 5successful operation
bad request
GET /api/command/changeInputName HTTP/1.1
Host: 127.0.0.1:9022
Accept: */*
{
"result": {
"command": "changeInputName",
"error": "unknown command",
"reply": "changeInputName",
"success": true
}
}API access: Over HTTP and TCP, this command needs Full API Access. Over the WebSocket API, Broadcast can use it on a title that has an input assigned to it, and Enterprise can use it on any title.
Creates an input dynamically at runtime. The profile field must contain the full XML of an input. After creating an input, you can then assign it to a title by name using the attachProfile command. NOTE: This function can only be used through the scheduleCommandXml API as shown below:
Because this endpoint doesn't use any variables, it can also be accessed using a GET request.
successful operation
bad request
GET /api/command/setProfile HTTP/1.1
Host: 127.0.0.1:9022
Accept: */*
{
"result": {
"command": "setProfile",
"error": "Invalid profile data.",
"reply": "setProfile",
"success": true
}
}NOTE:
setProfilerequires submitting xml data, so to use it, unless your xml data is small, you might need to send it as a POST request to the/api/endpoint directly.
Last updated