Comment on page
Update an Unmanaged Device
Update the properties of a specified unmanaged device
Updates the
is_managed
property of a specified unmanaged device (device
object) to indicate whether Seam manages the device. An unmanaged device has a limited set of visible properties and a subset of supported events. You cannot control an unmanaged device. Any access codes on an unmanaged device are unmanaged. To control an unmanaged device with Seam, convert it to a managed device.post
https://connect.getseam.com
/devices/unmanaged/update
/devices/unmanaged/update
Specify the desired unmanaged device by including the corresponding
device_id
in the request body. In addition, in the request body, include the is_managed
property, along with true
as the replacement value. Note that setting is_managed
to true
converts the unmanaged device to a managed device.Parameter | Type | Description |
---|---|---|
device_id | String
Required | ID of the desired device. |
is_managed | Boolean
Optional | Replacement value to indicate whether Seam manages the device. |
Python
cURL (bash)
Javascript
Ruby
Java
device_id = "882dd63f-db9b-4210-bac2-68372aa0aff7"
unmanaged_device_update = seam.devices.unmanaged.update(
device = device_id,
is_managed= True
)
pprint(unmanaged_device_update)
curl -X 'POST' \
'https://connect.getseam.com/devices/unmanaged/update' \
-H 'accept: application/json' \
-H 'Authorization: Bearer ${API_KEY}' \
-H 'Content-Type: application/json' \
-d '{
"device_id": "882dd63f-db9b-4210-bac2-68372aa0aff7",
"is_managed": true
}'
const deviceId = "882dd63f-db9b-4210-bac2-68372aa0aff7"
const unmanagedDeviceUpdate = await seam.devices.unmanaged.update({
device_id: deviceId,
is_managed: true
})
console.log(unmanagedDeviceUpdate)
device_id = "882dd63f-db9b-4210-bac2-68372aa0aff7"
unmanaged_device_update = client.unmanaged_devices.update(
device_id: device_id,
is_managed: true
)
puts unmanaged_device_update.inspect
var deviceId = "882dd63f-db9b-4210-bac2-68372aa0aff7";
seam.devices().unmanaged().update(UnmanagedUpdateRequest.builder()
.deviceId(deviceId)
.isManaged(true)
.build());
Returns a Boolean
ok
status indicator (with the exception of the Java SDK).Python
cURL (bash)
JavaScript
Ruby
True
{
"ok": true
}
{ ok: true }
{"ok"=>true}
Last modified 11d ago