---
title: "OS Patches"
method: GET
path: "/v2/device/{id}/os-patches"
tags: ["devices"]
---

# OS Patches

`GET /v2/device/{id}/os-patches`

## Request

- Base URL: `https://app.ninjarmm.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.ninjarmm.com/v2/device/{id}/os-patches`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `sessionKey`
- TypeScript: <https://skmtc.dev/ninjarmm/apis/ninjaone-public-api-2-0/docs/v2/device/:id/os-patches/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns list of pending/rejected/approved OS patches for device

## Path parameters

- `id` integer, required

## Query parameters

- `status` string
- `type` string
- `severity` string

## Response `default`

default response

- object[]
  - `id` string, uuid: Identifier
  - `name` string: Name
  - `severity` string: Severity
  - `status` string: Status
  - `type` string: Type
  - `installedAt` number, double: Installation attempt timestamp
  - `kbNumber` string: KB Number

---

[API](https://skmtc.dev/ninjarmm/apis/ninjaone-public-api-2-0.md) - [All operations](https://skmtc.dev/ninjarmm/apis/ninjaone-public-api-2-0/llms.txt) - [OpenAPI document](https://skmtc.dev/ninjarmm/apis/ninjaone-public-api-2-0/revisions/5ce571d1bb71?raw)
