system.kanoa.item.updateItemStateField
Description
Updates an item state's field valueSyntax
updateItemStateField(itemStateId, field, value, userId)- itemStateId (int)
- field (string) - Field name to update (e.g., 'itemStateName', 'itemStateDescription', 'itemStateClassId', 'enabled').
- value (pyObject) - Value corresponding to the field data type.
- userId (int)
- itemId (int)
- msg (string): None if success
Code Examples
# Example Usage:
updatedItemId = system.kanoa.item.updateItemStateField(1, 'itemStateName', 'NewName', 1)