Skip to main content

system.kanoa.attribute.updateAttribute

This function is part of the kanoaOPS module

Description

Updates an existing attribute.

Syntax

updateAttribute(attrInfo, userId)
  • Parameters
      dictionary attrInfo - {'attributeId': 1, 'attributeName': 'attributeDescription': 'some desription', 'some attribute name', 'parentId': 6, 'enabled': True}
      int userId - User ID
  • Returns
      int - Number of records modified
  • Code Examples

    # Example usage
    attrInfo = {
    'attributeId': 1,
    'attributeName': 'some attribute name',
    'attributeDescription': 'some description',
    'parentId': 6,
    'enabled': True
    }
    userId = 123
    modifiedRecords = system.kanoa.attribute.updateAttribute(attrInfo, userId)
    print(modifiedRecords) # Print the number of modified records