object graphprototype.create(object/array graphPrototypes)
This method allows to create new graph prototypes.
(object/array) Graph prototypes to create.
Additionally to the standard graph prototype properties, the method accepts the following parameters.
|array||Graph items to be created for the graph prototypes. Graph items can reference both items and item prototypes, but at least one item prototype must be present.|
(object) Returns an object containing the IDs of the created graph prototypes under the
graphids property. The order of the returned IDs matches the order of the passed graph prototypes.
Create a graph prototype with two items.
CGraphPrototype::create() in frontends/php/api/classes/CGraphPrototype.php.