All Commands Reference
The following pages will show you (almost) all of the commands that Captivate makes available to API consumers.
You can call these commands with the ServiceHandler library by using the scheduleCommand method on the scheduler object as described in the Javascript API Reference, and this reference assumes you are familiar with information contained there.
You can also call these commands through the use of one of our Advanced API connection methods.
These reference will describe the commands according to the HTTP connection method but they can easily be translated back to the scheduleCommand method.
Translating from this documentation back to scheduleCommand
For /api/command/ endpoints:
await ServiceHandler.scheduler.scheduleCommand([command], [params], [variables]);commandis the path element after/api/command/paramsis an object described by thepropertiesfieldvariablesis an object with the variables to set.all arguments are required
For /api/action/ endpoints:
await ServiceHandler.scheduler.scheduleAction([action], [input], [title], [variables]);actionis the path element after/api/action/inputis the input name to targettitleis the id or the name of the title to targetvariablesis an object with the variables to setall arguments are required, so to target just an input or a title, pass an empty string for the other one
Last updated