object graph.update(object/array graphs)

This method allows to update existing graphs.

This method is only available to Admin and Super admin user types. Permissions to call the method can be revoked in user role settings. See User roles for more information.


(object/array) Graph properties to be updated.

The graphid property must be defined for each graph, all other properties are optional. Only the passed properties will be updated, all others will remain unchanged.

Additionally to the standard graph properties the method accepts the following parameters.

Parameter Type Description
gitems array Graph items to replace existing graph items. If a graph item has the gitemid property defined it will be updated, otherwise a new graph item will be created.

Visszatérési értékek

(object) A frissített grafikonok azonosítóit tartalmazó objektumot ad eredményül a graphids tulajdonság alatt.


Setting the maximum for the Y scale

Set the maximum of the Y scale to a fixed value of 100.


           "jsonrpc": "2.0",
           "method": "graph.update",
           "params": {
               "graphid": "439",
               "ymax_type": 1,
               "yaxismax": 100
           "auth": "038e1d7b1735c6a5436ee9eae095879e",
           "id": 1


           "jsonrpc": "2.0",
           "result": {
               "graphids": [
           "id": 1


CGraph::update() az ui/include/classes/api/services/CGraph.php-ban.