Skip to main content

system.kanoa.item.addItemAttribute

This function requires KanoaOPS module

Description

Adds an item attribute. If it already exists, it will update it

Syntax

addItemAttribute(itemInfo, userId)
  • Parameters
      itemAttrInfo (dict)
      - itemId (int)
      - itemAttrName (string)
      - itemAttrValue (string)
  • Returns
      itemAttrId (int)
  • Code Examples

    # Example Usage:
    newItemAttrId = system.kanoa.item.addItemAttribute({'itemAttrName': 'weight', 'itemId': 1, 'itemAttrValue': 57.4}, 123)