# system.kanoa.dashboard.addWidgetCategory(categoryInfo, userId)

Create a new widget category

---
### Parameters
**categoryInfo** `Dictionary`<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - enabled</td><td>bit</td><td></td></tr>	
 	<tr><td> - widgetCategoryDescription</td><td>String</td><td>The description of the widget category</td></tr>	
 	<tr><td> - widgetCategoryName</td><td>String</td><td>The name of the category</td></tr>	
	</tbody>
</table>

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

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

---
### Example
```python
userId = 123
categoryInfo = {
  "widgetCategoryName": "Analysis",
  "widgetCategoryDescription": "Contains analysis style widgets",
  "enabled": True
}
widgetCategoryId, msg = system.kanoa.dashboard.addWidgetCategory(categoryInfo, userId)
if msg:	system.perspective.sendMessage('showFailerToast', msg)
else: system.perspective.sendMessage('showSuccessfulToast', 'Widget Category has been saved')
```
