system.kanoa.quality.config.updateDataType
Description
Updates a data type in KanoaQDS.Syntax
updateDataType(dataTypeInfo, userId)- dict dataTypeInfo - Dictionary, e.g., {'dataTypeName': 1,'enabled': 2,'isNumeric':3,'pickListEnabled':True}
- int userId - User ID
- int dataTypeId - ID of the updated data type.
Code Examples
# Usage example
data_type_info = {'dataTypeId': 1, 'dataTypeName': 'Special Bool', 'enabled': True,'isNumeric': True,'pickListEnabled':True}
user_id = 123
updated_data_type_id = system.kanoa.quality.config.updateDataType(dataTypeInfo=data_type_info, userId=user_id)
if updated_data_type_id:
print(f"Successfully updated data type. ID: {updated_data_type_id}")
else:
print("Update failed.")