system.kanoa.item.updateItem(itemInfo, userId)
Updates an item. ItemInfo keys are required unless otherwise stated.
Parameters
itemInfo Dictionary
| - enabled | Boolean | Not Required |
| - itemClassId | Integer | None if this is an item at the root |
| - itemColor | String | Not required. i.e '#00FF00' |
| - itemDescription | String | Not required |
| - itemId | Integer | |
| - itemName | String |
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)