system.kanoa.asset.updateCounter
Description
Updates a counter.Syntax
updateCounter(countInfo, userId)Parameters:
Returns:
Dictionary
Parameter | Type | Required | Notes |
---|---|---|---|
assetId | int | ID of the asset. | |
counterName | str | Name of the counter. | |
counterTypeId | int | ID of the counter type. | |
counterId | int | ID 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)