---
title: "PATCH /deviceUpdate/{instanceId}/management/deviceClasses/{deviceClassId}"
method: PATCH
path: "/deviceUpdate/{instanceId}/management/deviceClasses/{deviceClassId}"
tags: ["Device and deployment management"]
---

# PATCH /deviceUpdate/{instanceId}/management/deviceClasses/{deviceClassId}

`PATCH /deviceUpdate/{instanceId}/management/deviceClasses/{deviceClassId}`

Update device class details.

## Path parameters

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

## Query parameters

- `api-version` string, required

## Response `200`

The request has succeeded.

- DeviceClass — Device class metadata.
  - `deviceClassId` string, required — The device class identifier. This is generated from the model Id and the compat properties reported by the device update agent in the Device Update PnP interface in IoT Hub. It is a hex-encoded SHA1 hash.
  - `friendlyName` string — The device class friendly name. This can be updated by callers after the device class has been automatically created.
  - `deviceClassProperties` DeviceClassProperties, required — The device class properties that are used to calculate the device class Id
    - `contractModel` ContractModel — The Device Update agent contract model.
      - `id` string, required — The Device Update agent contract model Id of the device class. This is also used to calculate the device class Id.
      - `name` string, required — The Device Update agent contract model name of the device class. Intended to be a more readable form of the contract model Id.
    - `compatProperties` object, required — The compat properties of the device class. This object can be thought of as a set of key-value pairs where the key is the name of the compatibility property and the value is the value of the compatibility property. There will always be at least 1 compat property
  - `bestCompatibleUpdate` UpdateInfo — 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.

## 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)
