patch
https://api.sensos.io/v1/accounts//devices/
Partially update a device's name, configuration or set assignment. Returns the updated device.
Update semantics
- A field that is omitted or sent as
nullis left unchanged. configurationis not merged: when sent, it replaces the device's whole configuration object. For a Smart Label it must therefore includeflightModeEnabledandreportConfiguration, plus every optional setting you want to keep.
Set assignment (setId)
- If the device already has a configuration,
setIdis stored as provided. The set is not checked for existence and its configuration is not applied to the device. - If the device has no configuration yet, the set is validated (
400 Bad Requestif it does not exist) and the set's configuration is applied to the device.
BLE Tags
- Only
configurationcan be updated, and it is required. SendingnameorsetIdfor a BLE Tag returns400 Bad Request.
401Unauthorized. The access token is missing, invalid or expired. Returned by the gateway with an empty body.
403Forbidden. The caller lacks permission, or the account is unknown, belongs to another tenant or is inactive. Returned by the gateway with an empty body.
