Device Assignment
Assign Device to Owners
Create device-to-customer mappings
POST
Documentation Index
Fetch the complete documentation index at: https://docs.telemetron.ai/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Assigns a device to one or more customers. Creates the mapping for telemetry correlation. Features:- Auto-creates customers if they don’t exist
- Supports multi-owner assignments (shared/family devices)
- Optional auto-create for devices (requires
deviceType)
Authentication
Your organization’s API key
Request Body
The unique identifier for the device (e.g., serial number, MAC address)
Array of customer email addresses to assign the device to. Must contain at least one valid email.
If
true, creates the device automatically if it doesn’t exist in the system. Defaults to false.Required when
autoCreateDevice is true. Specifies the device type (e.g., “Thermostat”, “Sensor”, “Gateway”). This field is mandatory for creating new devices.Response
Indicates if the operation was successful
Description of the operation result
The unique device ID in the Telemetron system
Indicates whether the device was created during this operation. Always present in the response.
Array of customer objects that were assigned the device
Examples
Single Customer Assignment
Bulk Assignment (Multiple Customers)
Auto-Create Device
Response
Status Codes
| Code | Description |
|---|---|
| 200 | Device successfully assigned to customers |
| 400 | Invalid request (missing required fields, invalid email array, or no valid emails) |
| 401 | Invalid or missing API key |
| 404 | Device not found (when autoCreateDevice is false) |
| 500 | Internal server error |
Implementation Notes
- Multi-owner support: Assign a single device to multiple customers for shared/family accounts
- Auto-create customers: Non-existent customers are automatically created using email prefix as name
- Auto-create devices: Set
autoCreateDevice: trueand providedeviceTypeto create devices on-the-fly - Email handling: Emails are trimmed, lowercased, and validated. Invalid emails are skipped
- Idempotent: Re-assigning an already-assigned device won’t create duplicates