# system.kanoa.config.saveConfig(configInfo, userId)

Adds or updates the config information

---
### Parameters
**configInfo** `dictionary`<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - configId</td><td>Integer</td><td>None if this is a new record</td></tr>	
 	<tr><td> - configName</td><td>String</td><td>Name of configuration parameter</td></tr>	
 	<tr><td> - configTypeId</td><td>Integer</td><td>Can pass in configTypeId or configTypeName</td></tr>	
 	<tr><td> - configTypeName</td><td>String</td><td>Can pass in configTypeId or configTypeName</td></tr>	
 	<tr><td> - configValue</td><td>String</td><td>Value of parameter</td></tr>	
 	<tr><td> - description</td><td>String</td><td></td></tr>	
	</tbody>
</table>

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

---
### Returns
**configId** `Integer`<br />
**msg** `String` None if success<br />

---
### Example
```python
userId = 1
configInfo = {'configTypeName': 'schedule', 'configName': 'shiftTimeOnly', 'configValue': '1'}
configId, msg = system.kanoa.config.saveConfig(configInfo, userId)
```
