# system.kanoa.performanceState.linkPerformanceStates(linkInfo, userId)

Links assetIds with performanceStateIds, performanceStateClassIds, itemIds and itemClassIds. All linkInfo keys are required.

---
### Parameters
**linkInfo** `Dictionary`<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - assetId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - itemClassId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - itemId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - performanceStateClassId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - performanceStateId</td><td>Integer</td><td></td></tr>	
	</tbody>
</table>

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

---
### Returns
**performanceStateLinkId** `Integer`<br />
**msg** `String` None if success<br />

---
### Example
```python
linkInfo = {
    'performanceStateId': 4,
    'performanceStateClassId': 5, 
    'assetId': 510,
    'itemId': 30,
    'itemClassId': 58
}
userId = 18
performanceStateLinkId, msg = system.kanoa.performanceState.linkPerformanceStates(linkInfo,  userId)
```
