object trigger.update(object/array triggers)
This method allows to update existing triggers.
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 User roles for more information.
(object/array) Trigger properties to be updated.
triggerid property must be defined for each trigger, all other properties are optional. Only the passed properties will be updated, all others will remain unchanged.
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 updated triggers under the
Enable a trigger, that is, set its status to 0.
Replace tags for trigger.
CTrigger::update() у ui/include/classes/api/services/CTrigger.php.