Actions41
- Alarm Actions
- Alarm Category Actions
- Data Collection Actions
- Event Template Actions
- Find Actions
- Object Actions
- Scheduled Task Actions
- Server Actions
- User Actions
Event Template → Create
AI-generatedSummary
Create a new event template in NetXMS by POSTing the name and any optional fields to /v1/event-templates. Returns the server's response for the created template.
Inputs
- name (required) — Unique name for the event template. Uppercase with underscores is recommended, e.g. MY_CUSTOM_EVENT.
- additionalFields.description — Human-readable description of the template.
- additionalFields.flags — Event flags bitmask. The UI default is 1, which means write to log.
- additionalFields.message — Message template. Use %1, %2, … as parameter placeholders.
- additionalFields.severity — Default severity: Normal (0), Warning (1), Minor (2), Major (3) or Critical (4).
- additionalFields.tags — Comma-separated list of tags. The value is sent as entered, as a single string.
Output shape
One output item per input item, containing the JSON the NetXMS server returns for the created event template.
The node logs in with the configured credentials on each execution and sends the session token with the request. Only fields you add to Additional Fields are sent, along with name. With Continue On Fail enabled, a failed item returns {error: message} instead of stopping the workflow.
Examples
Example 1: Define a custom critical event for a failed backup job.
Name: BACKUP_FAILED; Additional Fields: Severity=Critical, Message='Backup failed on %1', Flags=1, Tags='backup,critical'.
Example 2: Create a minimal template and let the server apply its defaults.
Name: MY_CUSTOM_EVENT; no Additional Fields.