manual:api:reference:trigger:create

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
manual:api:reference:trigger:create [2020/05/05 11:36]
martins-v frontends/php -> ui (ZBX-17667)
manual:api:reference:trigger:create [2020/11/04 09:52]
Andrejs.Griscenko [ZBXNEXT-6148] added a note about who can call this method
Line 6: Line 6:
  
 This method allows to create new triggers. This method allows to create new triggers.
 +
 +<​note>​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 [[:​manual/​web_interface/​frontend_sections/​administration/​user_roles|User roles]] for more information.</​note>​
  
 ==== Parameters ==== ==== Parameters ====
Line 13: Line 15:
 Additionally to the [[object#​trigger|standard trigger properties]] the method accepts the following parameters. Additionally to the [[object#​trigger|standard trigger properties]] the method accepts the following parameters.
  
-^ Parameter ^ Type ^ Description ^+^ Parameter ^ [[:​manual/​api/​reference_commentary#​data_types|Type]] ^ Description ^
 | dependencies | array | Triggers that the trigger is dependent on. \\ \\ The triggers must have the ''​triggerid''​ property defined. | | dependencies | array | Triggers that the trigger is dependent on. \\ \\ The triggers must have the ''​triggerid''​ property defined. |
 | tags         | array | Trigger [[:​manual/​api/​reference/​trigger/​object#​trigger_tag|tags.]] | | tags         | array | Trigger [[:​manual/​api/​reference/​trigger/​object#​trigger_tag|tags.]] |
  
 <note important>​The trigger expression has to be given in its expanded form.</​note>​ <note important>​The trigger expression has to be given in its expanded form.</​note>​
 +
 ==== Return values ==== ==== Return values ====