Skip to main content

system.kanoa.asset.addCounterType

This function requires KanoaOPS module

Description

Adds a new counter type.

Syntax

addCounterType(countTypeInfo, userId)
  • Parameters
      countTypeInfo (dict) - A dictionary containing counter type information: - 'counterTypeName' (str): Name of the counter type.
      userId (int) - User ID.
  • Returns
      counterTypeId (int) - ID of the added counter type.
  • Code Examples

    # Example Usage:
    count_type_info = {'counterTypeName': 'general'}
    user_id = 123
    counter_type_id = system.kanoa.asset.addCounterType(count_type_info, user_id)