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 → Decommission device

AI-generated

Summary

Decommission a device in NinjaOne by specifying its device identifier.

Inputs

  • id (required) — The unique numerical identifier of the device to decommission.
  • options — Optional settings including:
  • Custom Body: JSON object to merge into the request body, overriding other fields.
  • Custom Headers: key-value pairs to add custom HTTP headers.
  • Query Filters: key-value pairs to add query parameters.
  • Batching: settings for batch size and interval to control request pacing.
  • Debug: boolean flag to include request details in output for troubleshooting.
  • Pagination: configuration for handling paginated responses (though typically not relevant for this operation).
  • Timeout: milliseconds to wait for server response before aborting.

Output shape

a single JSON object representing the API response to the decommission request

The output includes the response body from the NinjaOne API indicating success or failure of the decommission action. When Debug is enabled, additional request details are included under a debug key. This operation sends a POST request to the /v2/device/{id}/decommission endpoint with optional customizations via request body, headers, and query parameters.

Links

Discussion