# system.kanoa.cmms.updateProcedureStepCheck(checkInfo, userId)

Updates an existing procedure step check � one of the individual verification items (a measurement, pass/fail check, or reading) attached to a procedure step. 
Call this from the procedure builder when a planner edits a check's name, description, sort order within the step, or its required/enabled flags. 
All keys in `checkInfo` are required, and the function overwrites the identified check's fields with the values supplied, recording `userId` for audit purposes.

---
### Parameters
**checkInfo** `Dictionary`<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - checkConfig</td><td>String</td><td></td></tr>	
 	<tr><td> - checkDescription</td><td>String</td><td></td></tr>	
 	<tr><td> - checkName</td><td>String</td><td></td></tr>	
 	<tr><td> - enabled</td><td>Boolean</td><td></td></tr>	
 	<tr><td> - procedureStepCheckId</td><td>Integer</td><td>Id of procedure step check</td></tr>	
 	<tr><td> - procedureStepId</td><td>Integer</td><td>Id of procedure step</td></tr>	
 	<tr><td> - required</td><td>Boolean</td><td></td></tr>	
 	<tr><td> - sortOrder</td><td>Integer</td><td></td></tr>	
	</tbody>
</table>

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

---
### Returns
**# of records modified** `Integer`<br />
**message** `String` None if success<br />

---
### Example
```python
checkInfo = {
				"procedureStepCheckId": 8890,
				"procedureStepId": 4021,
				"checkName": "Belt deflection reading",
				"checkDescription": "Record belt deflection in mm using the tension gauge.",
				"checkConfig": "",
				"sortOrder": 1,
				"required": True,
				"enabled": True
			}
userId = system.kanoa.security.getIDPUserId({'userName': 'SYSTEM'})
result, message = system.kanoa.cmms.updateProcedureStepCheck(checkInfo, userId)
print result, message
```
