trigger.delete

Description说明

object trigger.delete(array triggerIds)

This method allows to delete triggers此方法允许删除触发器.

Parameters参数

(array) IDs of the triggers to delete.(array)要删除的触发器的ID

Return values返回值

(object) Returns an object containing the IDs of the deleted triggers under the triggerids property.(object)返回一个包含triggerids属性下的已删除触发器ID的对象

Examples范例

Delete multiple triggers删除多个触发器

Delete two triggers删除两个触发器.

Request请求:

  1. {
  2. "jsonrpc": "2.0",
  3. "method": "trigger.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来源

CTrigger::delete() in frontends/php/include/classes/api/services/CTrigger.php.