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

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

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

Get the best available updates for a device group and a count of how many
devices need each update.

## Path parameters

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

## Query parameters

- `api-version` string, required

## Response `200`

The request has succeeded.

- DeviceClassSubgroupUpdatableDevicesList — The list of updatable devices for a device class subgroup.
  - `value` DeviceClassSubgroupUpdatableDevices[], required — The DeviceClassSubgroupUpdatableDevices items on this page
    - `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.
  - `nextLink` string, uri — The link to the next page of items

## Other responses

- `default` — An unexpected error response.

---

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