NinjaOne RMM icon

NinjaOne RMM

Interact with NinjaOne RMM API

Query → Get OS Patches

AI-generated

Summary

Retrieve a list of operating system patches from NinjaOne using optional device filtering and pagination controls.

Inputs

  • Return All — Boolean to indicate whether to return all results or limit the output.
  • Limit — Maximum number of OS patch results to return when Return All is false (1-1000).
  • Filters — Set of filtering options including a device filter query string and a timestamp (Unix) to return patches since that time.
  • Filters.Device Filter — Query string to filter devices; supports expressions for dynamic filtering.
  • Filters.Since (Timestamp) — Unix timestamp to return OS patches updated since this time.

Output shape

a list of OS patch objects

Supports pagination; when 'Return All' is false, results are limited by 'Limit'. Returned data is an array of patch information objects as received from the NinjaOne API at endpoint /api/v2/queries/os-patches.

Examples

Example 1: Get up to 100 OS patches for all devices

Set Return All to false; set Limit to 100; leave Filters empty.

Example 2: Get all OS patches for devices with specific status

Set Return All to true; set Filter.Device Filter with a query (e.g., status=APPROVED).

Links

Discussion