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 [2014/12/03 09:17]
martins-v removing unnecessary '0' from function parameters in trigger expression examples
manual:api:reference:trigger:create [2020/08/25 12:53]
martins-v internal link to data type commentary (ZBX-17160)
Line 13: Line 13:
 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. |
  
Line 28: Line 28:
  
 Request: Request:
-<​code ​js>+<​code ​java>
 { {
     "​jsonrpc":​ "​2.0",​     "​jsonrpc":​ "​2.0",​
Line 47: Line 47:
  
 Response: Response:
-<​code ​js>+<​code ​java>
 { {
     "​jsonrpc":​ "​2.0",​     "​jsonrpc":​ "​2.0",​
Line 61: Line 61:
 ==== Source ==== ==== Source ====
  
-CTrigger::​create() in //​frontends/​php/​api/​classes/​CTrigger.php//​.+CTrigger::​create() in //​frontends/​php/​include/classes/​api/​services/​CTrigger.php//​.