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

Adds a new 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>i.e. '#00FF00'</td></tr>	
 	<tr><td> - shiftNameId</td><td>Integer</td><td></td></tr>	
	</tbody>
</table>

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

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

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