Device Management
Bulk Update Device Metadata
Bulk-update the deviceMetadata (properties) for multiple devices in a single request, identified by their serial/identifier
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
This endpoint allows you to update the metadata (properties) for up to 1,000 devices in a single request. Devices are identified by their serial/identifier and scoped to your organization via API key.- Only existing devices are updated; no devices are created. Unrecognized identifiers are reported as
not_found. - All matching devices are updated in a single SQL statement for efficiency.
updatedAtis set to the current time for all updated devices.
Authentication
Your organization’s API key
Request Body
Object mapping device identifiers (serials) to their new metadata properties. Each value must be a JSON object.
Constraints
devicesmust contain at least 1 entry- Maximum 1,000 devices per request
- Each metadata value must be a JSON object (not
null, array, or primitive) - Identifier keys are trimmed of leading/trailing whitespace before matching
Response
200 OK — Success
Always
true on a 200 response.Count of devices that were found and updated.
Count of identifiers that matched no device in the organization.
Per-identifier result in the same order as the input keys.
BulkMetadataResponseItem
| Field | Type | Description |
|---|---|---|
identifier | string | The trimmed device identifier |
deviceId | string | The device’s UUID if found, empty string if not found |
status | "updated" | "not_found" | Whether the device was updated or didn’t exist |
400 Bad Request
| Message | Cause |
|---|---|
"Invalid JSON payload" | Body is not valid JSON |
"devices is required and must be an object mapping identifiers to metadata" | Missing or wrong type |
"devices must contain at least one entry" | Empty object |
"Too many devices. Maximum 1000 per request" | Exceeds limit |
"Invalid metadata for device \"<identifier>\": must be a JSON object" | A metadata value is null, array, or primitive |
401 Unauthorized
500 Internal Server Error
Examples
Status Codes
| Code | Description |
|---|---|
| 200 | Devices successfully updated |
| 400 | Validation error (missing or invalid fields, invalid JSON, too many devices) |
| 401 | Authentication error (missing or invalid API key) |
| 500 | Internal server error |