Skip to main content

system.kanoa.item.updateItemStateField

Description

Updates an item state's field value.

Syntax

updateItemStateField(itemStateId, field, value, userId)

Parameters:
  • 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)

  • Returns:
  • itemId (int)
  • msg (string): None if success
  • Code Examples

    # Example Usage:
    updatedItemId = system.kanoa.item.updateItemStateField(1, 'itemStateName', 'NewName', 1)