Skip to main content

system.kanoa.item.addItemAttribute

Description

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

Syntax

addItemAttribute(itemInfo, userId)

Parameters:
  • itemInfo (dict)
  • userId (int)

  • Returns:
  • itemAttrId (int)
  • Dictionary

    ParameterTypeRequiredNotes
    itemIdint
    itemAttrNamestring
    itemAttrValuestring

    Code Examples

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