[comment]: # aside:1

[comment]: # ({1be9eba8-86ab9f61})
# Trigger prototype object

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

[comment]: # ({/1be9eba8-86ab9f61})

[comment]: # ({c2ca8894-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|Reduced trigger expression.<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.|
|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|Reduced trigger recovery expression.|
|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]: # ({/c2ca8894-bdd02d4b})

[comment]: # ({e2c52ea2-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.|

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