Device Assignment
Assign Devices to Owner
Assign multiple devices to a single customer
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 multiple devices to a single customer in one request. This is the bulk variant for assigning devices — use this when provisioning several devices for the same customer. Features:- Assign multiple devices to one customer in a single call
- Auto-creates the customer if they don’t exist
- Optional auto-create for devices (requires
deviceType) - Reports which devices were newly assigned, already assigned, or skipped
Authentication
Your organization’s API key
Request Body
The email address of the customer to assign devices to. Must be a valid email format.
Array of device identifiers (e.g., serial numbers, MAC addresses) to assign. Must be a non-empty array.
If
true, creates devices automatically if they don’t exist in the system. Defaults to false.Required when
autoCreateDevices is true. Specifies the device type (e.g., “sensor”, “Thermostat”, “Gateway”).Response
Indicates if the operation was successful
Description of the operation result
The unique identifier of the customer in Telemetron
Indicates whether the customer was created during this operation
Array of devices that were newly assigned in this request
Array of devices that were already assigned to this customer (no-op)
Array of device identifier strings that were not found in the system (when
autoCreateDevices is false)Examples
Basic Bulk Assignment
With Auto-Create Devices
Response
Status Codes
| Code | Description |
|---|---|
| 200 | Devices successfully assigned to customer |
| 400 | Invalid request (missing required fields, empty array, or no valid devices) |
| 401 | Invalid or missing API key |
| 500 | Internal server error |
Implementation Notes
- Idempotent: Devices already assigned to the customer are reported in
alreadyAssigned— no duplicates are created - Auto-create customer: The customer is automatically created if they don’t exist
- Partial success: The response details which devices were assigned, already assigned, or skipped, allowing you to handle each case
- Skipped devices: When
autoCreateDevicesisfalse, unknown device identifiers are returned in theskippedarray