Skip to main content

system.kanoa.asset.importAsset

Requires kanoaOPS license

Description

Imports all config info including child assets, links to modes, states, items and attributes.

Syntax

importAsset(exportInfo, userId, createModes, createStates, createItems)

Parameters:
  • exportInfo (dict): Asset dictionary to be imported.
  • userId (int)
  • createModes (bool): Should the modes be created?
  • createStates (bool): Should the states be created?
  • createItems (bool): Should the items be created?

  • Returns:
  • success (bit)
  • msg (string)
  • Code Examples

    # Example Usage:

    export_data = dict
    userId = 55
    createModes = 'True'
    createStates = 'True'
    createItems = 'False'
    status = system.kanoa.asset.importAsset(export_data, userId, createModes, createStates, createItems)