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:
countInfo = {'assetId': 18, 'counterName': 'caps', 'counterTypeId': 1, 'counterId': 10}
userId = 123
modifiedRecords = system.kanoa.asset.updateCounter(countInfo, userId)