Skip to main content

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

Adds or updates the config information


Parameters

configInfo dictionary

- configIdIntegerNone if this is a new record
- configNameStringName of configuration parameter
- configTypeIdIntegerCan pass in configTypeId or configTypeName
- configTypeNameStringCan pass in configTypeId or configTypeName
- configValueStringValue of parameter
- descriptionString

userId Integer


Returns

configId Integer
msg String None if success


Example

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