Skip to main content

system.kanoa.quality.config.updateAttribute

This function requires KanoaQDS module

Description

Updates an attribute in KanoaQDS.

Syntax

updateAttribute(attrInfo, userId)
  • Parameters
      dict attrInfo - Dictionary, e.g., {'attributeId': 1, 'attributeName': 'some attribute name', 'attributeDescription': 'some description', 'parentId': 6, 'enabled': True}
      int userId - User ID
  • Returns
      int modifiedRecords - Number of records modified during the update.
  • Code Examples

    # Usage example
    attribute_info = {'attributeId': 1, 'attributeName': 'some attribute name', 'attributeDescription': 'some description', 'parentId': 6, 'enabled': True}
    modified_records = system.kanoa.quality.config.updateAttribute(attrInfo=attribute_info, userId=123)

    if modified_records is not None:
    print(f"Successfully updated {modified_records} records")