# system.kanoa.shift.updateShift(shiftInfo, userId)

Updates a shift. All shiftInfo keys are required.

---
### Parameters
**shiftInfo** `Dictionary`<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - assetId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - shiftColor</td><td>String</td><td></td></tr>	
 	<tr><td> - shiftId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - shiftNameId</td><td>Integer</td><td></td></tr>	
	</tbody>
</table>

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

---
### Returns
**# of records modified** `Integer`<br />

---
### Example
```python
retVal = system.kanoa.shift.updateShift({'shiftId': 1, 'shiftNameId': 2, 'assetId': 18, 'shiftColor': '#00FF00'}, 123)
```
