# system.kanoa.attribute.addAttribute(attrInfo, userId)

Adds a new attribute. If this attribute already exists it will return the existing attributeId

---
### Parameters
**attrInfo** `Dictionary`<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - attributeDescription</td><td>String</td><td></td></tr>	
 	<tr><td> - attributeName</td><td>String</td><td></td></tr>	
 	<tr><td> - enabled</td><td>Boolean</td><td></td></tr>	
 	<tr><td> - parentId</td><td>Integer</td><td></td></tr>	
	</tbody>
</table>

**userId** `Integer`: Id of user executing the function<br />

---
### Returns
**attributeId** `Integer`<br />

---
### Example
```python
attrInfo = {
  'attributeName': 'some attribute name',
  'attributeDescription': 'some description',
  'parentId': 6,
  'enabled': True
}
userId = 123
attributeId = system.kanoa.attribute.addAttribute(attrInfo, userId)
```
