Overview
Removes the device-to-customer assignment. Both records remain in the system; only the association is removed.
After unassignment, device telemetry will no longer route to this customer. Reassign to new owner if device is still active.
Authentication
Your organization’s API key
Request Body
The unique identifier for the device (e.g., serial number, MAC address)
The email address of the customer to unassign the device from
Response
Indicates if the operation was successful
Description of the operation result
The unique identifier of the customer
The device identifier that was unassigned
Array of device identifiers still assigned to this customer after the unassignment
Examples
Request
curl -X POST https://admin.telemetron.ai/api/ext-v1/deviceAssignment/unassignDeviceFromOwner \
-H "x-api-key: your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"deviceIdentifier": "SN-12345-ABCDE",
"customerEmail": "john.doe@example.com"
}'
Response
{
"success": true,
"message": "Device successfully unassigned from customer",
"customerId": "cust_a1b2c3d4e5f6",
"deviceIdentifier": "SN-12345-ABCDE",
"devicesRemaining": ["SN-67890-FGHIJ"]
}
curl -X POST https://admin.telemetron.ai/api/ext-v1/deviceAssignment/unassignDeviceFromOwner \
-H "x-api-key: your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"deviceIdentifier": "SN-12345-ABCDE",
"customerEmail": "john.doe@example.com"
}'
{
"success": true,
"message": "Device successfully unassigned from customer",
"customerId": "cust_a1b2c3d4e5f6",
"deviceIdentifier": "SN-12345-ABCDE",
"devicesRemaining": ["SN-67890-FGHIJ"]
}
Status Codes
| Code | Description |
|---|
| 200 | Device successfully unassigned from customer |
| 400 | Invalid request (missing required fields, invalid email format, or device not assigned to customer) |
| 401 | Invalid or missing API key |
| 404 | Customer not found in your organization |
| 500 | Internal server error |
Notes
- Email format is validated before processing
- Non-destructive: customer and device records persist
- Response includes
devicesRemaining array for tracking
Common Use Cases
- Device returns/replacements: Stop routing telemetry to this customer
- Ownership transfer: Unassign from old owner, then assign to new owner
- Account cleanup: Remove inactive devices from customer accounts
Transfer Pattern: Unassign from old owner → Assign to new owner. See Assign Device.