Skip to main content

system.kanoa.quality.config.addAttribute(attrInfo)

Adds a new attribute. All attrInfo keys are required. If this attribute already exists it returns the existing attributeId.


Parameters

attrInfo Dictionary

- attributeDescriptionString
- attributeNameString
- enabledBoolean
- parentIdInteger

Returns

attributeId Integer


Example

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