NinjaOne icon

NinjaOne

Ninja One Public API documentation. <br><br>See also: <br> <a href="https://resources.ninjarmm.com/API/Ninja+RMM+Public+API+v2.0.5+Device+Filter+Syntax.pdf">Device Filter syntax</a><br><a href="https://app.ninjarmm.com/apidocs-beta/core-resources/articles/webhooks/overview">Webhooks</a>

Actions309

Management → Create windows event condition

AI-generated

Summary

Create a new Windows Event policy condition for a specified policy in NinjaOne, specifying event source, event IDs, and optional settings to define the condition's behavior and notifications.

Inputs

  • Policy Id (required) — The unique identifier of the policy to which the Windows Event condition will be added.
  • Source (required) — The source of the Windows Event log entries to monitor.
  • Event Ids (required) — A JSON array of event IDs that define the specific Windows Events to trigger the condition.
  • Additional Fields — Optional parameters including whether the condition is enabled, display name, severity, priority, notification channels, scripts, notification action, reset behavior, textual description, and occurrence criteria for the event condition.
  • Options — Advanced control options such as custom HTTP request body, headers, query filters, batching settings, debug mode toggle, pagination, and request timeout configuration used to customize the API request execution.

Output shape

a JSON object representing the created Windows Event policy condition as returned by the NinjaOne API

The output includes any data returned from the API on successful creation of the condition. If debug mode is enabled, detailed request/response info may be included under a debug field. Errors are surfaced according to standard node conventions.

Links

Discussion