register
Registers or updates a device. For initial device registration, only 'name' and 'deviceClass' properties are required.
Request
HTTP Request
PUT /device/{id}
Parameters
Parameter Name | Required | Type | Description |
---|---|---|---|
id | Yes | string | Device 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 Name | Required | Type | Description |
---|---|---|---|
name | Yes | string | Device display name. |
data | No | object | Device data, a JSON object with an arbitrary structure. |
networkId | Yes | integer | Associated network id. |
isBlocked | No | boolean | Indicates whether device is blocked. |
Response
If successful, this method returns an empty response body.
Updated less than a minute ago