删除

Description 说明

object triggerprototype.delete(array **triggerPrototypeIds**)

This method allows to delete trigger prototypes. 此方法允许删除触发器原型。

Parameters 参数

(array) IDs of the trigger prototypes to delete. (array)需要删除的触发器原型ID。

Return values 返回值

(object) Returns an object containing the IDs of the deleted trigger prototypes under the triggerids property. (object)返回一个对象,该对象包含在triggerids属性中已删除触发器原型的ID。

Examples 范例

Deleting multiple trigger prototypes 删除多个触发器原型

Delete two trigger prototypes. 删除两个触发器原型。

Request 请求:

  1. {
  2. "jsonrpc": "2.0",
  3. "method": "triggerprototype.delete",
  4. "params": [
  5. "12002",
  6. "12003"
  7. ],
  8. "auth": "3a57200802b24cda67c4e4010b50c065",
  9. "id": 1
  10. }

Response 响应:

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

Source 源码

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