Skip to main content

system.kanoa.asset.updateCounter

Requires kanoaOPS license

Description

Updates a counter.

Syntax

updateCounter(countInfo, userId)

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

  • Returns:
  • records modified (int)
  • Dictionary

    ParameterTypeRequiredNotes
    assetIdintID of the asset.
    counterNamestrName of the counter.
    counterTypeIdintID of the counter type.
    counterIdintID of the counter to be updated.

    Code Examples

    # Example Usage:
    count_info = {'assetId': 18, 'counterName': 'caps', 'counterTypeId': 1, 'counterId': 10}
    user_id = 123
    modified_records = system.kanoa.asset.updateCounter(count_info, user_id)