Skip to main content

system.kanoa.config.saveConfig

Description

Saves the application configuration settings.

Syntax

saveConfig(configInfo)
  • Parameters
      configInfo (dict)
      - configId (int) - None if this is a new record
      - configTypeName (string) - Can pass in configTypeId or configTypeName
      - configTypeId (int) - Can pass in configTypeId or configTypeName
      - configName (string)
      - configValue (string)
      userId (int)
  • Returns
      configId (int)
      msg (string)
  • Code Example

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