object graphprototype.update(object/array graphPrototypes)
This method allows to update existing graph prototypes.
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 prototype properties to be updated.
graphid property must be defined for each graph prototype, all other properties are optional. Only the passed properties will be updated, all others will remain unchanged.
Additionally to the standard graph prototype properties, the method accepts the following parameters.
|gitems||array||Graph items to replace existing graph items. If a graph item has the
(object) Returns an object containing the IDs of the updated graph prototypes under the
Change the size of a graph prototype to 1100 to 400 pixels.
CGraphPrototype::update() in ui/include/classes/api/services/CGraphPrototype.php.