Rename a device
PATCH/api/v1/devices/{deviceId}
Update device by given deviceId. Applies to WEDA Node and Custom Device. A SubNode returns 404.
deviceId, hwModel, and orgId are immutable and cannot be included in the request body; any of them present returns 400. deviceName must contain only letters, digits, hyphens, and underscores, and must not exceed 128 characters.
For a Custom Device (deviceId is a UUID), the device must already have been created or read at least once through the organization-scoped API, because this route carries no orgId.
Request
Responses
- 200
- 400
OK
deviceId, hwModel, or orgId present in the request body, or deviceName format invalid