triggerprototype.create
This method allows to create new trigger prototypes.
This method is only available to Admin and Super admin user types. Permissions to call the method can be revoked in user role settings. See for more information.
Additionally to the the method accepts the following parameters.
The trigger expression has to be given in its expanded form and must contain at least one item prototype.
Creating a trigger prototype
Create a trigger prototype to detect when a file system has less than 20% free disk space.
:
{
"jsonrpc": "2.0",
"result": {
"17372"
]
},
CTriggerPrototype::create() in ui/include/classes/api/services/CTriggerPrototype.php.