Skip to main content

system.kanoa.item.updateItem

This function requires KanoaOPS module

Description

Updates an item (kanoaOPS).

Syntax

updateItem(itemInfo, userId)
  • Parameters
      itemInfo (Dictionary) - Dictionary containing updated item information.
      userId (Integer) - User ID.
  • 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]