object trigger.adddependencies(object/array triggerDependencies)
This method allows to create new trigger dependencies.
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 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() у ui/include/classes/api/services/CTrigger.php.