# system.kanoa.dashboard.addDashboardWidget(widgetInfo, userId)

Adds a widget to a dashboards breakpoint

---
### Parameters
**widgetInfo** `Dictionary`<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - breakpointId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - columnEnd</td><td>Integer</td><td>The right most column for this widget</td></tr>	
 	<tr><td> - columnStart</td><td>Integer</td><td>The left most column for this widget</td></tr>	
 	<tr><td> - dashboardId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - enabled</td><td>bit</td><td></td></tr>	
 	<tr><td> - rowEnd</td><td>Integer</td><td>The bottom row for this widget</td></tr>	
 	<tr><td> - rowStart</td><td>Integer</td><td>The top row for this widget</td></tr>	
 	<tr><td> - widgetId</td><td>Integer</td><td></td></tr>	
	</tbody>
</table>

**userId** `Integer`: Id of user executing the function<br />

---
### Returns
**dashboardWidgetId** `Integer`<br />
**message** `String` None if success<br />

---
### Example
```python
widgetInfo = {
  "dashboardId": 4,
  "breakpointId": 1,
  "widgetId": 7,
  "enabled": True,
  "rowStart": 8,
  "rowEnd": 8,
  "colStart": 2,
  "colEnd": 20,
}
userId = 123
dashboardWidgetId, msg = system.kanoa.dashboard.addDashboardWidget(widgetInfo, userId)
if msg:	system.perspective.sendMessage('showFailerToast', msg)
else: system.perspective.sendMessage('showSuccessfulToast', 'Dashboard widget has been saved')
```
