system.kanoa.item.updateItem
Description
Updates an item (kanoaOPS).Syntax
updateItem(itemInfo, userId)- itemInfo (Dictionary) - Dictionary containing updated item information.
- userId (Integer) - User ID.
- # 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]