# system.kanoa.asset.addMode(modeInfo, userId)

Adds a new mode. modeInfo keys are required.

---
### Parameters
**modeInfo** `Dictionary`<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - canSchedule</td><td>Boolean</td><td></td></tr>	
 	<tr><td> - canSelect</td><td>Boolean</td><td></td></tr>	
 	<tr><td> - enabled</td><td>Boolean</td><td></td></tr>	
 	<tr><td> - iconPath</td><td>String</td><td></td></tr>	
 	<tr><td> - modeColor</td><td>String</td><td>i.e '#FF0000'</td></tr>	
 	<tr><td> - modeName</td><td>String</td><td></td></tr>	
 	<tr><td> - modeTypeId</td><td>Integer</td><td></td></tr>	
	</tbody>
</table>

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

---
### Returns
**modeId** `Integer`<br />

---
### Example
```python
modeInfo = {
    'modeName': 'NewMode',
    'modeTypeId': 1,
    'enabled': True,
    'canSelect': True,
    'canSchedule': False,
    'modeColor': '#00FF00',
    'iconPath': '/path/to/icon'
}
userId = 5
modeId = system.kanoa.asset.addMode(modeInfo, userId)
