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 custom fields policy condition

AI-generated

Summary

Create a custom fields policy condition for a specified policy using the NinjaOne API.

Inputs

  • Policy Id (required) — The ID of the policy to which the custom fields condition will be added.
  • Additional Fields — Optional settings for the policy condition such as enabled status, display name, severity, priority, notification channels, scripts, notification action, reset options, and arrays specifying matching conditions (matchAll and matchAny).
  • Options — Additional request options including custom JSON body to merge, custom HTTP headers, query filters, batching controls, debug mode, pagination settings, and request timeout.

Output shape

a single JSON object representing the created custom fields policy condition as returned by the NinjaOne API

The output contains the API response data for the newly created policy condition. If debug is enabled, detailed request and response information is included. Pagination does not apply as this is a creation operation.

Links

Discussion