Skip to main content

system.kanoa.quality.config.updateAttribute(attrInfo, userId)

Updates an attribute. All attrInfo keys are required.


Parameters

attrInfo Dictionary

- attributeDescriptionString
- attributeIdInteger
- attributeNameString
- enabledBoolean
- parentIdInteger

userId Integer:Id of the user executing the function


Returns

# of records modified Integer


Example

attrInfo = {'attributeId': 67, 'attributeName': 'some attribute name', 'attributeDescription': 'some description', 'parentId': 6, 'enabled': True}
userId = 5
attributeIid = system.kanoa.quality.config.updateAttribute(attrInfo, userId)