[comment]: # aside:1

[comment]: # ({e35608de-07413af4})
# Graph prototype object

The following objects are directly related to the `graphprototype` API.

[comment]: # ({/e35608de-07413af4})

[comment]: # ({86490078-c613d83a})
### Graph prototype

The graph prototype object has the following properties.

|Property|[Type](/manual/api/reference_commentary#data-types)|Description|
|--|--|------|
|graphid|ID|ID of the graph prototype.<br><br>[Property behavior](/manual/api/reference_commentary#property-behavior):<br>- *read-only*<br>- *required* for update operations|
|height|integer|Height of the graph prototype in pixels.<br><br>[Property behavior](/manual/api/reference_commentary#property-behavior):<br>- *required* for create operations|
|name|string|Name of the graph prototype.<br><br>[Property behavior](/manual/api/reference_commentary#property-behavior):<br>- *required* for create operations|
|width|integer|Width of the graph prototype in pixels.<br><br>[Property behavior](/manual/api/reference_commentary#property-behavior):<br>- *required* for create operations|
|flags|integer|[Origin](/manual/api/reference_commentary#entity-origin-flags) of the graph prototype.<br><br>Possible values:<br>2 - a graph prototype;<br>6 - a discovered graph prototype<br><br>[Property behavior](/manual/api/reference_commentary#property-behavior):<br>- *read-only*|
|graphtype|integer|Graph prototypes's layout type.<br><br>Possible values:<br>0 - *(default)* normal;<br>1 - stacked;<br>2 - pie;<br>3 - exploded.|
|percent\_left|float|Left percentile.<br><br>Default: 0.|
|percent\_right|float|Right percentile.<br><br>Default: 0.|
|show\_3d|integer|Whether to show discovered pie and exploded graphs in 3D.<br><br>Possible values:<br>0 - *(default)* show in 2D;<br>1 - show in 3D.|
|show\_legend|integer|Whether to show the legend on the discovered graph.<br><br>Possible values:<br>0 - hide;<br>1 - *(default)* show.|
|show\_work\_period|integer|Whether to show the working time on the discovered graph.<br><br>Possible values:<br>0 - hide;<br>1 - *(default)* show.|
|templateid|ID|ID of the parent template graph prototype.<br><br>[Property behavior](/manual/api/reference_commentary#property-behavior):<br>- *read-only*|
|yaxismax|float|The fixed maximum value for the Y axis.|
|yaxismin|float|The fixed minimum value for the Y axis.|
|ymax\_itemid|ID|ID of the item that is used as the maximum value for the Y axis.<br><br>If a user has no access to the specified item, the graph is rendered as if `ymax_type` is set to "calculated".|
|ymax\_type|integer|Maximum value calculation method for the Y axis.<br><br>Possible values:<br>0 - *(default)* calculated;<br>1 - fixed;<br>2 - item.|
|ymin\_itemid|ID|ID of the item that is used as the minimum value for the Y axis.<br><br>If a user has no access to the specified item, the graph is rendered as if `ymin_type` is set to "calculated".|
|ymin\_type|integer|Minimum value calculation method for the Y axis.<br><br>Possible values:<br>0 - *(default)* calculated;<br>1 - fixed;<br>2 - item.|
|discover|integer|Graph prototype discovery status.<br><br>Possible values:<br>0 - *(default)* new graphs will be discovered;<br>1 - new graphs will not be discovered and existing graphs will be marked as lost.|
|uuid|string|Universal unique identifier, used for linking imported graph prototypes to already existing ones. Auto-generated, if not given.<br><br>[Property behavior](/manual/api/reference_commentary#property-behavior):<br>- *supported* if the graph prototype belongs to a template|

[comment]: # ({/86490078-c613d83a})
