# system.kanoa.cmms.updateProcedureStepEvent(procedureStepInfo, userId)

Updates an existing procedure step event � the record of a single procedure step's execution within a work order, such as its completion status, actual time spent, or comment. 
Call this when a technician corrects a logged duration, marks a step complete/incomplete after the fact, or adds a comment to the execution record. 
All keys in `procedureStepInfo` are required, and the function overwrites the identified step event's fields with the values supplied, recording `userId` for audit purposes.

---
### Parameters
**procedureStepInfo** `Dictionary`<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - actualMinutes</td><td>Integer</td><td></td></tr>	
 	<tr><td> - comment</td><td>String</td><td></td></tr>	
 	<tr><td> - completed</td><td>Boolean</td><td></td></tr>	
 	<tr><td> - procedureStepEventId</td><td>Integer</td><td>Id of procedure step event</td></tr>	
 	<tr><td> - procedureStepId</td><td>Integer</td><td>Id of procedureStep</td></tr>	
 	<tr><td> - workOrderEventId</td><td>Integer</td><td>Id of workOrderEvent</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
procedureStepInfo = {
						"procedureStepEventId": 19042,
						"procedureStepId": 4021,
						"workOrderEventId": 7731,
						"actualMinutes": 18,
						"completed": True,
						"comment": "Belt tension adjusted, within spec."
					}
userId = system.kanoa.security.getIDPUserId({'userName': 'SYSTEM'})
result, message = system.kanoa.cmms.updateProcedureStepEvent(procedureStepInfo, userId)
print result, message
```
