object trigger.create(object/array triggers)
This method allows to create new triggers.
(object/array) Triggers to create.
Additionally to the standard trigger properties the method accepts the following parameters.
|dependencies||array||Triggers that the trigger is dependent on.
The triggers must have the
The trigger expression has to be given in its expanded form.
(object) Returns an object containing the IDs of the created triggers under the
triggerids property. The order of the returned IDs matches the order of the passed triggers.
Create a trigger with a single trigger dependency.
CTrigger::create() in frontends/php/include/classes/api/services/CTrigger.php.