This is a translation of the original English documentation page. Help us make it better.

trigger.deletedependencies

Description

object trigger.deletedependencies(string/array triggers)

This method allows to delete all trigger dependencies from the given 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.

Parametri

(stringa/array) Triggers da cui eliminare le dipendenze del trigger.

Valori di ritorno

(object) Restituisce un oggetto contenente gli ID dei trigger interessati sotto la proprietà triggerids.

Esempi

Deleting dependencies from multiple triggers

Delete all dependencies from two triggers.

Request:

{
           "jsonrpc": "2.0",
           "method": "trigger.deleteDependencies",
           "params": [
               {
                   "triggerid": "14544"
               },
               {
                   "triggerid": "14545"
               }
           ],
           "auth": "038e1d7b1735c6a5436ee9eae095879e",
           "id": 1
       }

Response:

{
           "jsonrpc": "2.0",
           "result": {
               "triggerids": [
                   "14544",
                   "14545"
               ]
           },
           "id": 1
       }

Guarda anche

Fonte

CTrigger::deleteDependencies() in ui/include/classes/api/services/CTrigger.php.