object triggerprototype.create(object/array triggerPrototypes)
This method allows to create new trigger prototypes.
(object/array) Trigger prototypes to create.
The method accepts trigger prototypes with the standard trigger prototype properties.
The trigger expression has to be given in its expanded form and must contain at least one item prototype.
(object) Returns an object containing the IDs of the created trigger prototypes under the
triggerids property. The order of the returned IDs matches the order of the passed trigger prototypes.
Create a trigger prototype to detect when a file system has less than 20% free disk space.
CTriggerPrototype::create() in frontends/php/include/classes/api/services/CTriggerPrototype.php.