# system.kanoa.dashboard.updateDashboardWidget(dashboardWidgetInfo, userId)

Updates a dashboards widget

---
### Parameters
**dashboardWidgetInfo** `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> - viewParams</td><td>String</td><td></td></tr>	
 	<tr><td> - widgetId</td><td>Integer</td><td></td></tr>	
	</tbody>
</table>

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

---
### Returns
**# of records modified** `Integer`<br />
**message** `string or None if no error`<br />

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