Generates and retrieves a new widget for the dashboard

Syntax
.create(/dashboard_id/, /data/)

Arguments

Field nameTypeDescription
dashboard_id
string
Dashboard id for the dashboard.
data
object
Options for the new widget.
label
string
A label for the dashboards.
arrangement
array
[optional]
Array of objects with the arrangement of the widget inside the dashboard.
widget_id
string
Id of the widget.
xnumber
Position x of the widget. 1 to 4.
ynumber
Position y of the widget. 1 to 20.
width
number
Width of the widget. 1 to 4.
height
number
Height of the widget. 1 to 20.

Returns {Promise<JSON>}