system.kanoa.quality.config.addDataType
Description
Adds a new data type.Syntax
addDataType(dataTypeInfo, userId)Parameters:
Returns:
Dictionary
| Parameter | Type | Required | Notes | 
|---|---|---|---|
| dataTypeName | string | e.g. 'Special Bool' | |
| enabled | bool | ||
| isNumeric | bool | ||
| pickListEnabled | bool | 
Code Examples
# Usage example
data_type_info = {'dataTypeName': 'Special Bool', 'enabled': True,'isNumeric': True,'pickListEnabled':True}
user_id = 123
data_type_id = system.kanoa.quality.config.addDataType(dataTypeInfo=data_type_info, userId=user_id)
if data_type_id:
    print(f"Successfully added data type. New ID: {data_type_id}")
else:
    print("Addition failed.")