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 → Run Software patch scan

AI-generated

Summary

Run a software patch scan on a specific device identified by its ID, sending a POST request to the NinjaOne API endpoint for patch scans.

Inputs

  • id (required) — Device identifier (number) to specify which device to run the software patch scan on.
  • options — Optional settings including custom JSON body fields to merge with the request body, additional HTTP headers, query string filters, batch processing controls, debug flag for including request details in output, pagination configuration for list operations, and request timeout in milliseconds.

Output shape

a JSON object representing the API response to the software patch scan POST request, potentially including debug details if enabled

Returns the response from the POST /v2/device/{id}/patch/software/scan endpoint. If debug is enabled, the output contains the URL, query parameters, headers, and body sent in the API request under a debug key. Batch processing is supported for multiple input items, sending one request per device ID.

Links

Discussion