Device Connectivity Made Easy

Focus on your product and innovation and leave communication and management to DeviceHive.

Get Started

Represents a device, a unit that runs microcode and communicates to this API.

Methods

Method

Authorization

Uri

Description

list

Access JSON Web Token (GetDevice)

GET /device

Gets list of devices.

count

Access JSON Web Token (GetDevice)

GET /device/count

Gets count of devices.

get

Access JSON Web Token (GetDevice)

GET /device/{id}

Gets information about device.

register

Access JSON Web Token (RegisterDevice)

PUT /device/{id}

Registers or updates a device. For initial device registration, only 'name' property is required.

delete

Access JSON Web Token (RegisterDevice)

DELETE /device/{id}

Deletes an existing device.

Resource Representation

{
    "id": {string},
    "name": {string},
    "data": {object},
    "networkId": {integer},
    "deviceTypeId": {integer},
    "isBlocked": {boolean}
}

Property Name

Type

Description

id

string

Device unique identifier.

name

string

Device display name.

data

object

Device data, a JSON object with an arbitrary structure.

networkId

integer

Associated network id.

deviceTypeId

integer

Associated device type id.

isBlocked

boolean

Indicates whether device is blocked.

Updated 3 years ago

Device


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.