---
title: "Update device/shadow metadata"
method: PATCH
path: "/organizations/{organizationId}/devices/{deviceId}"
tags: ["Devices"]
---

# Update device/shadow metadata

`PATCH /organizations/{organizationId}/devices/{deviceId}`

## Request

- Base URL: `https://api.xfa.tech`
- URL: `https://api.xfa.tech/organizations/{organizationId}/devices/{deviceId}`
- Auth: HTTP bearer

## Path parameters

- `organizationId` string, required
- `deviceId` string, required

## Request body

- object
  - `note` string: Note to add to the device
  - `tags` string[]: Tags to associate with the device

## Response `204`

Device metadata updated successfully

## Other responses

- `400`: Bad request
- `403`: Forbidden - not authorized
- `404`: Device not found
- `500`: Server error

---

[API](https://skmtc.dev/xfa/apis/xfa-api.md) · [All operations](https://skmtc.dev/xfa/apis/xfa-api/llms.txt) · [OpenAPI document](https://skmtc.dev/xfa/apis/xfa-api/revisions/1a1be0e8972b?raw)
