Skip to main content

system.kanoa.asset.addCounterType

Description

Adds a new counter type.

Syntax

addCounterType(countTypeInfo, userId)

Parameters:
  • countTypeInfo (dict): A dictionary containing counter type information:
  • userId (int): User ID.

  • Returns:
  • counterTypeId (int): ID of the added counter type.
  • Dictionary

    ParameterTypeRequiredNotes
    counterTypeNamestr Name of the 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)