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:
    countTypeInfo = {'counterTypeName': 'general'}
    userId = 123
    counterTypeId = system.kanoa.asset.addCounterType(countTypeInfo, userId)