Device Management
Create or Update Device
Register a new device or update an existing device by 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 create a new device or update an existing one using its unique identifier. When a device with the given identifier already exists, the provided fields will be updated. When no device exists with that identifier, a new device is created.- New devices require both
identifierandtype. - Existing devices can be updated by providing
identifieralong with any fields to change (type,properties).
Authentication
Your organization’s API key
Request Body
A unique identifier for the device. Must be a non-empty string.
The device type (e.g.,
"sensor", "gateway", "controller"). Required when creating a new device. Optional when updating an existing device.Optional metadata object containing additional device properties.
Response
Indicates whether the operation was successful.
A human-readable message describing the result.
The unique ID of the created or updated device.
The identifier of the device.
The device type.
Examples
Create a New Device
Update an Existing Device
Response
Status Codes
| Code | Description |
|---|---|
| 200 | Device successfully created or updated |
| 400 | Validation error (missing or invalid fields, invalid JSON) |
| 401 | Authentication error (missing or invalid API key) |
| 500 | Internal server error |