Get.list.tasks:
Return the list of tasks with properties
Property | Description |
---|---|
keyword | the keyword to filter a task |
name | the name of the task |
objectType | type of object, here “task” |
taskEnable | if the task is enable |
triggerEnable | if it’s possible to trigger the task |
triggered | indicate that this task was recently launched |
uiColor | color of the task |
uuid | unique uuid to control the task |
Example:
{"jsonrpc":"2.0","method":"get.list.tasks","id": 1}
Get.object.task:
Return the properties of one task.
You can use one of the following parameters:
Param | B1 |
---|---|
uuid | unique uuid to control the task |
name | name of the task. if several task with same name, it will return the first one |
Property | Description |
---|---|
keyword | the keyword to filter a task |
name | the name of the task |
objectType | type of object, here “task” |
taskEnable | if the task is enable |
triggerEnable | if it’s possible to trigger the task |
triggered | indicate that this task was recently launched |
uiColor | color of the task |
uuid | unique uuid to control the task |
Example:
{"jsonrpc":"2.0","method":"get.object.task", "params": {"uuid": "{45c8566e-435d-4abb-ad3a-2800cb1ce1c5}"}}
Set.property.task:
Use this command to set a task property.
It is possible to set these properties:
Property | Description |
---|---|
keyword | the keyword to filter a task |
name | the name of the task |
taskEnable | if the task is enable |
triggerEnable | if it’s possible to trigger the task |
uiColor | color of the task |
Example:
{"jsonrpc":"2.0","method":"set.property.task", "params":{"uuid":"{45c8566e-435d-4abb-ad3a-2800cb1ce1c5}","property":"taskEnable","value":true}}
Doaction.task:
Use this command to do an action on a task.
You can use the param launch to trigger a task.
Example:
{"jsonrpc":"2.0","method":"doaction.task", "params":{"uuid":"{45c8566e-435d-4abb-ad3a-2800cb1ce1c5}","action":"launch"}}
Need more help with this?
Don’t hesitate to contact us here.