Skip to main content

system.kanoa.quality.config.updateAttribute

Requires kanoaQDS license

Description

Updates an attribute.

Syntax

updateAttribute(attrInfo, userId)

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

  • Returns:
  • modifiedRecords (int): Number of records modified during the update.
  • Dictionary

    ParameterTypeRequiredNotes
    attributeIdintNoe.g. 1
    attributeNamestrNoe.g. 'some attribute name'
    attributeDescriptionstrNoe.g. 'some description'
    parentIdintNoe.g. 6
    enabledboolNoe.g. True

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