# system.kanoa.asset.setAssetStateLinkCode(stateAssetLinkId, stateCode, userId)

This functions updates the stateCode for an asset

---
### Parameters
**stateAssetLinkId** `Integer`: Id of the state asset link to update<br />
**stateCode** `Integer`: Code to link for the asset - state<br />
**userId** `Integer`: Id of user executing the function<br />

---
### Returns
**# of records modified** `Integer`<br />
**msg** `String` None if success<br />

---
### Example
```python
modifiedRecords, errorMsg = system.kanoa.asset.setAssetStateLinkCode(123, 4, 7)
```
