Skip to main content

system.kanoa.item.updateItem(itemInfo, userId)

Updates an item


Parameters

itemInfo Dictionary

- enabledBoolean
- itemClassIdInteger
- itemColorString
- itemDescriptionString
- itemIdInteger
- itemNameString

userId Integer: Id of user executing the function


Returns

# of records modified Integer


Example

itemInfo = {
'itemId': 1,
'itemName': 'Sausages',
'itemDescription': 'Delicious bangers',
'itemClassId': None,
'itemColor': '#FF0000',
'enabled': True
}
retVal = system.kanoa.item.updateItem(itemInfo, 123)