system.kanoa.quality.config.updateUnit
Description
Updates an engineering unit in KanoaQDS.Syntax
updateUnit(unitInfo, userId)- dict unitInfo - Dictionary with unit details, e.g., {'engUnitId': 1, 'engUnitName': 'some unit', 'enabled': True}
- int userId - User ID.
- int recordsModified - Number of records modified.
Code Examples
# Usage example
unit_info_update = {'engUnitId': 1, 'engUnitName': 'some unit', 'enabled': True}
user_id_update = 123
modified_records_update = system.kanoa.quality.config.updateUnit(unitInfo=unit_info_update, userId=user_id_update)
print(f"Updated {modified_records_update} records.")