This is the documentation page for an unsupported version of Zabbix.
Is this not what you were looking for? Switch to the current version or choose one from the drop-down menu.

update()

Available since version: 1.8
The method is used to control all action attributes including action conditions and operations.

Parameters

Parameter Type Optional Description Details
actionid string Action ID.
action attribute any Yes New value for an action attribute.
action conditions data array or object array of action conditions objects
action operations data array or object array of action operations objects

Returns

Parameter Description
result Operation successful. Result will contain array of updated action IDs.
error In case of any errors

Example

Set action name to "New Name":

  {
          "jsonrpc": "2.0",
          "method": "action.update",
          "params": {
             "actionid": "100100000010092",
             "name": "New Name"
          },
          "auth": "700ca65537074ec963db7efabda78259",
          "id": 2
         }

Retrieved updated action IDs:

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

Example #2

Disable action:

{
        "actionid": "1",
        "status": "0",
       } 

Parameter "status" serves for setting status of your action.