system.kanoa.item.updateItem(itemInfo, userId)
Updates an item
Parameters
itemInfo Dictionary
| - enabled | Boolean | |
| - itemClassId | Integer | |
| - itemColor | String | |
| - itemDescription | String | |
| - itemId | Integer | |
| - itemName | String |
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)