Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-3407

Zabbix API trigger.update allow array of triggerid not only one triggerid

XMLWordPrintable

      Currently trigger.update allows working with only one id at a time without being able to update an array of triggers.
      https://www.zabbix.com/documentation/3.2/manual/api/reference/trigger/update

      example:

      {
          "jsonrpc":  "2.0",
          "method":  "trigger.update",
          "params":  {
                         "triggerid":  [
                                           "100100000048256",
                                           "100100000048257"
                                       ],
                         "status":  1
                     },
          "id":  "2",
          "auth":  "266421fd8fcb977e971300b2bfbce6cc"
      }
      

      will return invalid parameters while

      {
          "jsonrpc":  "2.0",
          "method":  "trigger.update",
          "params":  {
                         "triggerid":  "100100000048256",
                         "status":  1
                     },
          "id":  "2",
          "auth":  "266421fd8fcb977e971300b2bfbce6cc"
      }
      

      works fine

            Unassigned Unassigned
            adrian.tartareanu@gmail.com Adrian Tartareanu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: