system.kanoa.inventory.addModel(modelInfo, userId)
Adds or updates a model.
Parameters
modelInfo Dictionary
| - assetTypeId | Integer | Not required |
| - description | String | Not required |
| - enabled | Boolean | Not required |
| - manufacturerId | Integer | |
| - modelId | Integer | Not required, pass to update |
| - modelNumber | String | |
| - notes | String | Not required |
userId Integer:Id of the user executing the function
Returns
modelId Integer
message String None if success
Example