Generates and retrieves a new device for the account

Syntax
.create(/data/)

Arguments

Field name
TypeDescription
token
stringToken for the generated device.
id
stringId of the new device.
data
object
Options for the new 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.
configuration_params
array
[optional] 
An array of objects with sent(bool), key(string) and value(string).
tags
array
[optional] 
An array of objects with key and value. 

Returns {Promise<JSON>}