Operation

Field

Type

Description

id

String

Operation's ID.

name

String

Operation's name.

type

String

Operation's type. It might be equal either to 1 or 2. The first number corresponds to an MQTT message, the second one is for a program/script.

parameters

.type

String

A subtype of the current script's type. Available types: fileSystem, scriptReference, scriptText.

parameters

.topic

String

An MQTT topic. This parameter should be specified only for the MQTT message type.

parameters

.message

String

An MQTT message. This parameter should be specified only for the MQTT message type.

parameters

.args

Array<String>

An array of script's input parameters. This parameter should be specified only for the fileSystem subtype.

parameters

.path

String

A path to a script. This parameter should be specified only for the fileSystem subtype.

parameters

.text

String

A script's source code. This parameter should be specified only for the scriptText subtype.

parameters

.ref

String

The ID of a script. This parameter should be specified only for the scriptReference subtype.

‚Äč