Registers or updates a device. For initial device registration, only 'name' and 'deviceClass' properties are required.

Request

HTTP Request

PUT /device/{id}

Parameters

Parameter NameRequiredTypeDescription
idYesstringDevice unique identifier.
Device Id can only contain letters, digits and dashes.

Authorization

Access JSON Web Token (RegisterDevice)

Request Body

In the request body, supply a Device resource.

Property NameRequiredTypeDescription
nameYesstringDevice display name.
dataNoobjectDevice data, a JSON object with an arbitrary structure.
networkIdYesintegerAssociated network id.
isBlockedNobooleanIndicates whether device is blocked.

Response

If successful, this method returns an empty response body.