Skip to main content
POST

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 identifier and type.
  • Existing devices can be updated by providing identifier along with any fields to change (type, properties).

Authentication

string
required
Your organization’s API key

Request Body

string
required
A unique identifier for the device. Must be a non-empty string.
string
The device type (e.g., "sensor", "gateway", "controller"). Required when creating a new device. Optional when updating an existing device.
object
Optional metadata object containing additional device properties.

Response

boolean
Indicates whether the operation was successful.
string
A human-readable message describing the result.
string
The unique ID of the created or updated device.
string
The identifier of the device.
string | null
The device type.

Examples

Create a New Device

Update an Existing Device

Response

Status Codes