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

NodeRoles → Create node roles

AI-generated

Summary

Create one or multiple node roles in NinjaOne by sending an array of item objects representing the roles to be created.

Inputs

  • Items (required) — A JSON array of objects, each defining a node role to create.
  • Options — Optional settings including custom request body (merged with the items), custom HTTP headers, query-string filters, batching controls, debug toggle, pagination settings, and request timeout.

Output shape

The API response for each creation request batch, optionally including debug information with request details if enabled.

Input items can be processed in batches to avoid rate limits. The operation sends POST requests to '/v2/noderole' endpoint with the combined JSON body. Custom body fields override standard fields. Pagination options exist but typically not used on create operations. Debug output adds request details useful for troubleshooting.

Links

Discussion