---
title: "Update a device via patch"
method: PATCH
path: "/devices/{deviceId}"
---

# Update a device via patch

`PATCH /devices/{deviceId}`

Update an existing device by ID.

## Path parameters

- `deviceId` string, required

## Query parameters

- `api-version` string, required

## Request body

- object

## Response `200`

Success

- Device — The device definition.
  - `id` string — Unique ID of the device.
  - `etag` string — ETag used to prevent conflict in device updates.
  - `displayName` string — Display name of the device.
  - `template` string — The device template definition for the device.
  - `enabled` boolean — Whether the device connection to IoT Central has been enabled.
  - `provisioned` boolean — Whether resources have been allocated for the device.
  - `simulated` boolean — Whether the device is simulated.
  - `organizations` string[] — List of organization IDs that the device is a part of, only one organization is supported today, multiple organizations will be supported soon.

## Other responses

- `default` — An error response received from the IoT Central Service.

---

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