graph.update

    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.

    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 the method accepts the following parameters.

    Setting the maximum for the Y scale

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

    Request:

    1. {
    2. "jsonrpc": "2.0",
    3. "result": {
    4. ]
    5. },
    6. "id": 1

    CGraph::update() in ui/include/classes/api/services/CGraph.php.