Skip to main content

system.kanoa.item.updateItem

Requires kanoaOPS license

Description

Updates an item.

Syntax

updateItem(itemInfo, userId)

Parameters:
  • itemInfo (Dictionary): Dictionary containing updated item information.
  • userId (Integer)

  • Returns:
  • # of records modified (Integer)
  • Code Examples

    # Example Usage:
    itemInfo = {
    'itemName': 'Sausages',
    'itemDescription': 'Delicious bangers',
    'itemClassId': None,
    'itemColor': '#FF0000',
    'enabled': True,
    'itemId': 1
    }
    if system.kanoa.item.updateItem(itemInfo, 123): print 'Successfully updated item %s'%itemInfo[itemName]