# system.kanoa.inventory.updateSupplier(supplierInfo, userId)

Updates an existing supplier record. 
The `supplierInfo` dictionary must include the `supplierId` of the record being modified along with any fields to change; unspecified fields are left as-is. 
The `userId` is recorded for auditing who performed the update.

---
### Parameters
**supplierInfo** `Dictionary`<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - accountNumber</td><td>String</td><td></td></tr>	
 	<tr><td> - contactName</td><td>String</td><td></td></tr>	
 	<tr><td> - email</td><td>String</td><td></td></tr>	
 	<tr><td> - enabled</td><td>Boolean</td><td></td></tr>	
 	<tr><td> - phone</td><td>String</td><td></td></tr>	
 	<tr><td> - supplierId</td><td></td><td>(int)</td></tr>	
 	<tr><td> - supplierName</td><td>String</td><td></td></tr>	
 	<tr><td> - websiteUrl</td><td>String</td><td></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
supplierInfo = {
	'supplierId': 4417,
	'phone': '800-555-0199',
	'contactName': 'Miguel Torres',
	'enabled': True
}
userId = system.kanoa.security.getIDPUserId({'userName': 'SYSTEM'})

recordsModified, message = system.kanoa.inventory.updateSupplier(supplierInfo, userId)
print recordsModified, message
```
