Simulate Device Disconnection
Simulates disconnecting a device from Seam. Only applicable for sandbox devices. See also Testing Your App Against Device Disconnection and Removal.
Simulates disconnecting a device from Seam.
Code:
await seam.devices.simulate.disconnect({
device_id: "a60686b8-f401-452d-9f67-53d139cf6160",
});Output:
// voidSimulates disconnecting a device from Seam.
Code:
curl --include --request POST "https://connect.getseam.com/devices/simulate/disconnect" \
--header "Authorization: Bearer $SEAM_API_KEY" \
--json @- <<EOF
{
"device_id": "a60686b8-f401-452d-9f67-53d139cf6160"
}
EOFOutput:
{}Simulates disconnecting a device from Seam.
Code:
seam.devices.simulate.disconnect(device_id="a60686b8-f401-452d-9f67-53d139cf6160")Output:
NoneSimulates disconnecting a device from Seam.
Code:
seam.devices.simulate.disconnect(device_id: "a60686b8-f401-452d-9f67-53d139cf6160")Output:
nilSimulates disconnecting a device from Seam.
Code:
$seam->devices->simulate->disconnect(
device_id: "a60686b8-f401-452d-9f67-53d139cf6160"
);Output:
Simulates disconnecting a device from Seam.
Code:
seam devices simulate disconnect --device_id "a60686b8-f401-452d-9f67-53d139cf6160"Output:
{}Request Parameters
device_id String (Required)
ID of the device that you want to simulate disconnecting from Seam.
Response
void
Last updated
Was this helpful?

