lib/seam/clients/devices.rb in seamapi-1.4.0 vs lib/seam/clients/devices.rb in seamapi-1.5.0
- old
+ new
@@ -21,9 +21,22 @@
"device",
params: {device_id: device_id}
)
end
+ def update(device_id: nil, is_managed: nil, name: nil, properties: nil)
+ request_seam(
+ :patch,
+ "/devices/update",
+ body: {
+ device_id: device_id,
+ is_managed: is_managed,
+ name: name,
+ properties: properties
+ }.compact
+ )
+ end
+
def list_device_providers(params = {})
request_seam_object(
:get,
"/devices/list_device_providers",
Seam::DeviceProvider,