Skip to main content

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

Updates an item. ItemInfo keys are required unless otherwise stated.


Parameters

itemInfo Dictionary

- enabledBooleanNot Required
- itemClassIdIntegerNone if this is an item at the root
- itemColorStringNot required. i.e '#00FF00'
- itemDescriptionStringNot required
- itemIdInteger
- itemNameString

userId Integer:Id of the 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)