Skip to main content

system.kanoa.quality.config.updateDataType

Requires kanoaQDS license

Description

Updates a data type.

Syntax

updateDataType(dataTypeInfo, userId)

Parameters:
  • dataTypeInfo (dict): Dictionary
  • userId (int): User ID

  • Returns:
  • dataTypeId (int): ID of the updated data type.
  • Dictionary

    ParameterTypeRequiredNotes
    dataTypeNameintNoe.g. 1
    enabledintNoe.g. 2
    isNumericintNoe.g. 3
    pickListEnabledboolNoe.g. True

    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.")