Zabbix Documentation 1.8

2.23.04.04.2 (current)In development:4.4 (devel)Unsupported:1.82.02.43.23.4

User Tools

Site Tools


Sidebar

api:trigger:update

Table of Contents

update()

Available since version: 1.8
The method is used to control all trigger attributes including trigger applications linkage.

Parameters

ParameterTypeOptionalDescriptionDetails
triggeridstring Trigger ID.
trigger attributeany Yes New value for a trigger attribute.

Returns

ParameterDescription
resultOperation successful. Result will contain array of updated Trigger IDs.
errorIn case of any errors

Example

Enable trigger, .i.e set its status to '0':

  {
   "jsonrpc":"2.0",
   "method":"trigger.update",
   "params":[{
      "triggerid": "100100000010092",
      "status": 0
   }],
   "auth":"700ca65537074ec963db7efabda78259",
   "id":2
  }

Retrieved updated trigger IDs:

  {
   "jsonrpc":"2.0",
   "result": {
       "triggerids":["100100000010092"]
   },
   "id":2
  }