Adding Custom Metadata to a Device
You can add or change custom metadata for a device.
const deviceUpdate = await seam.devices.update({
device_id: "30fd243b-3054-4384-a713-5487076a3826",
custom_metadata: {
"internal_account_id": "user-1"
}
})
console.log(deviceUpdate){ ok: true }curl -X 'POST' \
'https://connect.getseam.com/devices/update' \
-H 'accept: application/json' \
-H 'Authorization: Bearer ${API_KEY}' \
-H 'Content-Type: application/json' \
-d '{
"device_id": "30fd243b-3054-4384-a713-5487076a3826",
"custom_metadata": {
"id": "internal_id_1"
}
}'{
"ok": true
}Last updated
Was this helpful?

