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

Updates an existing crew - every key besides crewId is optional

---
### Parameters
**crewInfo** `Dictionary`<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - assetId</td><td>Integer</td><td>Not required</td></tr>	
 	<tr><td> - crewId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - crewName</td><td>String</td><td>Not required</td></tr>	
 	<tr><td> - enabled</td><td>Boolean</td><td>Not required</td></tr>	
	</tbody>
</table>

**userId** `Integer`: User performing this action (changedBy)<br />

---
### Returns
**rowsAffected** `Integer` records modified, 0 if crewId not found or on failure<br />
**message** `String` None on success, an error message on failure<br />

---
### Example
```python
crewInfo = {'crewId': 4, 'enabled': False}
userId = 12
rowsAffected, message = system.kanoa.operators.updateCrew(crewInfo, userId)
```
