# system.kanoa.dashboard.updateUserDashboard(userDashboardInfo, userId)

Updates a user dashboard

---
### Parameters
**userDashboardInfo** `Dictionary`<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - dashboardId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - isFavorite</td><td>Boolean</td><td></td></tr>	
 	<tr><td> - isPrimary</td><td>Boolean</td><td>When true, this dashboard is shown on main overview page when the user logs in</td></tr>	
 	<tr><td> - userDashboardId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - userId</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` None if successful<br />

---
### Example
```python
userDashboardInfo = {
  "userDashboardId": 12,
  "dashboardId": 4,
  "userId": 7,
  "isPrimary": True,
  "isFavorite": False
}
userId = 123
retVal, msg = system.kanoa.dashboard.updateUserDashboard(userDashboardInfo, userId)
if msg:	system.perspective.sendMessage('showFailerToast', msg)
else: system.perspective.sendMessage('showSuccessfulToast', 'User Dashboard has been updated')
```
