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 → Change organization policy mappings

AI-generated

Summary

Replace all policy mappings for a specified organization by sending an array of policy items to update the organization's policy assignments.

Inputs

  • id (required) — The numerical ID of the organization for which to change policy mappings.
  • items (required) — A JSON array of policy assignment items to set for the organization, replacing existing mappings.
  • options — Optional additional settings including custom request body fields, headers, query filters, batching, debug output, pagination, and timeout controls.

Output shape

a JSON object representing the response from the API endpoint after updating the organization's policy mappings

The output includes the API response data for the PUT request to /v2/organization/{id}/policies. If debug option is enabled, the output also contains request details like URL, headers, and body sent. Supports batching and pagination parameters as configured.

Links

Discussion