# system.kanoa.quality.config.addCheck(chkItemInfo, userId)

Add configuration for a check item. All chkItemInfo keys are required.

---
### Parameters
**chkItemInfo** `Dictionary`<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - attributeId</td><td>Integer</td><td>Links to an attribute for data source value capture and/or tolerance checking for pass/fail</td></tr>	
 	<tr><td> - calculation</td><td>String</td><td></td></tr>	
 	<tr><td> - chkItemGroupId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - chkShtId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - chkItemName</td><td>String</td><td></td></tr>	
 	<tr><td> - chkItemTriggerId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - chkItemTypeId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - chkShtId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - dataTypeId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - dynamic</td><td>Boolean</td><td>If true, this check will only be displayed if we find a tolerance set for it based on asset and item</td></tr>	
 	<tr><td> - enabled</td><td>Boolean</td><td></td></tr>	
 	<tr><td> - engUnitId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - format</td><td>String</td><td>i.e. '#,##0.#'</td></tr>	
 	<tr><td> - instructions</td><td>String</td><td></td></tr>	
 	<tr><td> - measAggregate</td><td>String</td><td></td></tr>	
 	<tr><td> - measCount</td><td>Integer</td><td></td></tr>	
 	<tr><td> - persistence</td><td>Boolean</td><td>If true, this check value will be set to the value taken for the previous check. It can be modified by the check taker</td></tr>	
 	<tr><td> - pickListId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - pickListValues</td><td>String</td><td></td></tr>	
 	<tr><td> - required</td><td>Boolean</td><td></td></tr>	
 	<tr><td> - sortOrder</td><td>Integer</td><td></td></tr>	
 	<tr><td> - specification</td><td>String</td><td></td></tr>	
	</tbody>
</table>

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

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

---
### Example
```python
chkItemInfo = {
                'chkItemGroupId': 1,
                'chkShtId': 2,
                'dataTypeId':3,
                'engUnitId':None,
                'chkItemName': 'Check 1',
                'chkItemTypeId':1,
                'chkItemTriggerId':4,
                'measCount': 1,
                'measAggregate': None,
                'instructions': None,
                'pickListId': 4,
                'pickListValues': None,
                'calculation': None,
                'required': True,
                'enabled': True, 
                'dynamic': False,
                'sortOrder':0,
                'format': '#,##0.#', 
                'attributeId': None,
                'specification': None,
                'persistence': None
              }
userId = 5
chkItemId = system.kanoa.quality.config.addCheck(chkItemInfo, userId)
```
