NinjaOne icon

NinjaOne

Consume the NinjaOne RMM API

Query → OS Patches

AI-generated

Summary

Query OS patch information using optional filters including device filter, cursor, page size, and timestamp.

Inputs

  • Authentication (required) — Choose authentication method: OAuth2 or Client Credentials.
  • Filters — Optional filters to narrow results including Device Filter (DF), Cursor for pagination, Page Size to limit results per page (default 200), and Timestamp (ts).

Output shape

a list of OS patch records matching the filters

The output is paginated using the cursor and pageSize filters. The data returned is a JSON array of OS patch objects from the NinjaOne API's /api/v2/queries/os-patches endpoint.

Examples

Example 1: Using this operation to retrieve OS patch reports for devices filtered by Device Filter and paginated with a cursor and specific page size.

Set 'Authentication' to either OAuth2 or Client Credentials. Set filters as needed, e.g., 'Device Filter (DF)' to 'class in (WINDOWS_WORKSTATION)', 'Cursor' to the last retrieved cursor, 'Page Size' to 100, and optionally 'Timestamp'.

Links

Discussion