object trigger.adddependencies(object/array triggerDependencies)
This method allows to create new trigger dependencies.
(object/array)
Trigger dependencies to create.
Each trigger dependency has the following parameters:
Parameter | Type | Description |
---|---|---|
triggerid (required) |
string | ID of the dependent trigger. |
dependsOnTriggerid (required) |
string | ID of the trigger that the trigger depends on. |
(object)
Returns an object containing the IDs of the dependent triggers under the triggerids
property.
Make trigger "14092" dependent on trigger "13565."
Request:
{
"jsonrpc": "2.0",
"method": "trigger.adddependencies",
"params": {
"triggerid": "14092",
"dependsOnTriggerid": "13565"
},
"auth": "038e1d7b1735c6a5436ee9eae095879e",
"id": 1
}
Response:
CTrigger::addDependencies() in ui/include/classes/api/services/CTrigger.php.