[comment]: # aside:1

[comment]: # ({632c8835-86ab9f61})
# Trigger prototype object

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

[comment]: # ({/632c8835-86ab9f61})

[comment]: # ({2f585f94-bdd02d4b})
### Trigger prototype

The trigger prototype object has the following properties.

|Property|[Type](/manual/api/reference_commentary#data-types)|Description|
|--|--|------|
|triggerid|ID|ID of the trigger prototype.<br><br>[Property behavior](/manual/api/reference_commentary#property-behavior):<br>- *read-only*<br>- *required* for update operations|
|description|string|Name of the trigger prototype.<br><br>[Property behavior](/manual/api/reference_commentary#property-behavior):<br>- *required* for create operations|
|expression|string|Trigger expression.<br><br>Must contain at least one item prototype.<br>Item prototypes with `value_type` set to `5` (binary) or `6` (JSON) cannot be used in trigger expressions.<br><br>[Property behavior](/manual/api/reference_commentary#property-behavior):<br>- *required* for create operations|
|event\_name|string|Event name generated by the trigger.|
|opdata|string|Operational data.|
|comments|string|Additional comments to the trigger prototype.|
|priority|integer|Severity of the trigger prototype.<br><br>Possible values:<br>0 - *(default)* not classified;<br>1 - information;<br>2 - warning;<br>3 - average;<br>4 - high;<br>5 - disaster.|
|status|integer|Whether the trigger prototype is enabled or disabled.<br><br>Possible values:<br>0 - *(default)* enabled;<br>1 - disabled.|
|flags|integer|[Origin](/manual/api/reference_commentary#entity-origin-flags) of the trigger prototype.<br><br>Possible values:<br>2 - a trigger prototype;<br>6 - a discovered trigger prototype.<br><br>[Property behavior](/manual/api/reference_commentary#property-behavior):<br>- *read-only*|
|templateid|ID|ID of the parent template trigger prototype.<br><br>[Property behavior](/manual/api/reference_commentary#property-behavior):<br>- *read-only*|
|type|integer|Whether the trigger prototype can generate multiple problem events.<br><br>Possible values:<br>0 - *(default)* do not generate multiple events;<br>1 - generate multiple events.|
|url|string|URL associated with the trigger prototype.|
|url_name|string|Label for the URL associated with the trigger prototype.|
|recovery\_mode|integer|OK event generation mode.<br><br>Possible values:<br>0 - *(default)* Expression;<br>1 - Recovery expression;<br>2 - None.|
|recovery\_expression|string|Trigger recovery expression.<br><br>Must contain at least one item prototype.<br>Item prototypes with `value_type` set to `5` (binary) or `6` (JSON) cannot be used in trigger recovery expressions.|
|correlation\_mode|integer|OK event closes.<br><br>Possible values:<br>0 - *(default)* All problems;<br>1 - All problems if tag values match.|
|correlation\_tag|string|Tag for matching.|
|manual\_close|integer|Allow manual close.<br><br>Possible values:<br>0 - *(default)* No;<br>1 - Yes.|
|discover|integer|Trigger prototype discovery status.<br><br>Possible values:<br>0 - *(default)* new triggers will be discovered;<br>1 - new triggers will not be discovered and existing triggers will be marked as lost.|
|uuid|string|Universal unique identifier, used for linking imported trigger prototypes to already existing ones. Auto-generated, if not given.<br><br>[Property behavior](/manual/api/reference_commentary#property-behavior):<br>- *supported* if the trigger prototype belongs to a template|

[comment]: # ({/2f585f94-bdd02d4b})

[comment]: # ({003fdd39-efc78bd6})
### Trigger prototype tag

The trigger prototype tag object has the following properties.

|Property|[Type](/manual/api/reference_commentary#data-types)|Description|
|--|--|------|
|tag|string|Trigger prototype tag name.<br><br>[Property behavior](/manual/api/reference_commentary#property-behavior):<br>- *required*|
|value|string|Trigger prototype tag value.<br><br>[Property behavior](/manual/api/reference_commentary#property-behavior):<br>- *read-only*.|
|object|integer|Type of object the tag was inherited from.<br><br>Possible values:<br>0 - template;<br>1 - host;<br>3 - item;<br>4 - item prototype.<br><br>[Property behavior](/manual/api/reference_commentary#property-behavior):<br>- *read-only*.|
|objectid|ID|ID of the object the tag was inherited from.<br><br>[Property behavior](/manual/api/reference_commentary#property-behavior):<br>- *read-only*.|

[comment]: # ({/003fdd39-efc78bd6})
