删除依赖

Description 说明

object trigger.deletedependencies(string/array **triggers**)

This method allows to delete all trigger dependencies from the given triggers. 此方法允许从指定的触发器中删除所有的触发依赖关系。

Parameters 参数

(string/array) Triggers to delete the trigger dependencies from. (string/array)需要从触发依赖中删除的触发器。

Return values 返回值

(object) Returns an object containing the IDs of the affected triggers under the triggerids property. (object)返回一个对象,该对象包含在triggerids属性中已受影响触发器的ID。

Examples 范例

Deleting dependencies from multiple triggers 从多个触发器中删除依赖关系

Delete all dependencies from two triggers. 从两个触发器中删除所有依赖关系。

Request 请求:

  1. {
  2. "jsonrpc": "2.0",
  3. "method": "trigger.deleteDependencies",
  4. "params": [
  5. {
  6. "triggerid": "14544"
  7. },
  8. {
  9. "triggerid": "14545"
  10. }
  11. ],
  12. "auth": "038e1d7b1735c6a5436ee9eae095879e",
  13. "id": 1
  14. }

Response 响应:

  1. {
  2. "jsonrpc": "2.0",
  3. "result": {
  4. "triggerids": [
  5. "14544",
  6. "14545"
  7. ]
  8. },
  9. "id": 1
  10. }

See also 参考

Source 源码

CTrigger::deleteDependencies() in frontends/php/include/classes/api/services/CTrigger.php. CTrigger::deleteDependencies()方法可在frontends/php/include/classes/api/services/CTrigger.php中参考。