---
title: "GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/bestUpdates"
method: GET
path: "/deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/bestUpdates"
tags: ["Device and deployment management"]
---

# GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/bestUpdates

`GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/bestUpdates`

Get the best available update for a device class subgroup and a count of how
many devices need this update.

## Path parameters

- `instanceId` string, required
- `groupId` string, required
- `deviceClassId` string, required

## Query parameters

- `api-version` string, required

## Response `200`

The request has succeeded.

- DeviceClassSubgroupUpdatableDevices — Device class subgroup, update information, and the number of devices for which the update is applicable.
  - `groupId` string, required — The group Id
  - `deviceClassId` string, required — The device class subgroup's device class Id
  - `update` UpdateInfo, required — Update information.
    - `updateId` UpdateId, required — Update identifier.
      - `provider` string, required — Update provider.
      - `name` string, required — Update name.
      - `version` string, required — Update version.
    - `description` string — Update description.
    - `friendlyName` string — Friendly update name.
  - `deviceCount` integer, required — Total number of devices for which the update is applicable.

## Other responses

- `default` — An unexpected error response.

## Changes

> 6 revisions in range; 2 could not be searched.

- **2026-07-13** (2020-09-01) `5ba53cf1b884` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/azure/apis/deviceupdate-microsoft-deviceupdate/changes/deviceUpdate/:instanceId/management/groups/:groupId/deviceClassSubgroups/:deviceClassId/bestUpdates/get.md)

---

[API](https://skmtc.dev/azure/apis/deviceupdate-microsoft-deviceupdate.md) · [All operations](https://skmtc.dev/azure/apis/deviceupdate-microsoft-deviceupdate/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/deviceupdate-microsoft-deviceupdate/revisions/ceb0ecac6c82/schema)
