# system.kanoa.operators.addCrew(crewInfo, userId)

Creates a new crew

---
### Parameters
**crewInfo** `Dictionary`<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - assetId</td><td>Integer</td><td>the site level asset this crew belongs to</td></tr>	
 	<tr><td> - crewName</td><td>String</td><td></td></tr>	
 	<tr><td> - enabled</td><td>Boolean</td><td>Not required. Default is True</td></tr>	
	</tbody>
</table>

**userId** `Integer`: the actor performing this action (createdBy)<br />

---
### Returns
**crewId** `Integer` The new crew's id on success, None on failure<br />
**message** `String` None on success, an error message on failure<br />

---
### Example
```python
crewInfo = {'assetId': 4, 'crewName': 'Crew 1'}
userId = 12
crewId, message = system.kanoa.operators.addCrew(crewInfo, userId)
```
