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:graph:update

Table of Contents

update()

Available since version: 1.8
The method is used to control all graph attributes including graph graphs.

Parameters

ParameterTypeOptionalDescriptionDetails
graphidstring Graph ID.
graph attributeany Yes New value for a graph attribute.
gitemsany Yes New graph item list.

Returns

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

Example

Set graph y axis max value to '100':

  {
   "jsonrpc":"2.0",
   "method":"graph.update",
   "params":{
      "graphid": "100100000010092",
      "ymax_type": 1,
      "yaxismax": 100
   },
   "auth":"700ca65537074ec963db7efabda78259",
   "id":2
  }

Retrieved updated graph IDs:

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