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 → Update node roles

AI-generated

Summary

Update node roles by sending an array of role items in the request body to the NinjaOne API's PATCH /v2/noderole endpoint.

Inputs

  • items (required) — JSON array representing the node roles to be updated, sent as the request body.
  • Options — Optional settings including custom request body JSON (to override or add fields), custom HTTP headers, query string filters, batching controls, debug flag to include request details in output, pagination settings (though not typically needed for update), and timeout specification.

Output shape

an array of response items, each corresponding to the updated node roles, including any debug information if enabled.

The 'items' input accepts an array that is sent as JSON in the request body. The 'customBody' option allows deep-merging or overriding this payload. The operation performs an HTTP PATCH request to /v2/noderole. Debug option adds detailed request data in the output. Pagination options exist but are generally irrelevant for this update operation.

Links

Discussion