Managed and Unmanaged Devices
You can indicate the devices in your workspace that you intend to control using the Seam API.
Convert a Managed Device to Unmanaged
const deviceId = "77208078-6dd7-44e5-a3e4-a2ed3a34efc9"
// Take a managed device.
const device = await seam.devices.get({
device_id: deviceId
})
// Set the managed status to false.
const updatedDevice = await seam.devices.update({
device_id: deviceId,
is_managed: false
})
// Retrieve the unmanaged device.
const unmanagedDevice = await seam.devices.unmanaged.get({
device_id: deviceId
})
console.log(unmanagedDevice)
/*
{
is_managed: false,
device_id: '77208078-6dd7-44e5-a3e4-a2ed3a34efc9',
device_type: 'yale_lock',
connected_account_id: '4e5acceb-2bda-4dc1-814e-39c998431683',
capabilities_supported: [ 'access_code', 'lock' ],
workspace_id: '1d2826eb-4a26-4f46-bddb-ef5898baa859',
created_at: '2023-08-29T04:30:14.914Z',
errors: [],
warnings: [],
properties: {
name: 'FRONT DOOR',
online: true,
manufacturer: 'august',
image_url: 'https://connect.getseam.com/assets/images/devices/yale_assure-lock-touchscreen-wifi-smart-lock_satin-nickel_front.png',
image_alt_text: 'Yale Assure Touchscreen Wifi Smart Lock, Satin Nickel, Front',
model: { display_name: 'Lock', manufacturer_display_name: 'August' }
}
}
*/Convert an Unmanaged Device to Managed
Automatically Set New Devices to Unmanaged
Last updated
Was this helpful?

