Modifies any property of the device.

Syntax
.edit(/id/, /data/)

Arguments

Field nameTypeDescription
id
string
Reference ID of the device. 
data
object
Options to be modified in the device.
name
string
[optional]
A name for the device.
description
string
[optional]
Description of the device. 
active
bool
[optional]
Set if the device will be active. Default True.
visible
bool
[optional]
Set if the device will be visible. Default True.
tags
array
[optional] 
An array of objects with key and value.

Returns {Promise<JSON>}