Skip to main content

system.kanoa.inventory.addModel(modelInfo, userId)

Adds or updates a model.


Parameters

modelInfo Dictionary

- assetTypeIdIntegerNot required
- descriptionStringNot required
- enabledBooleanNot required
- manufacturerIdInteger
- modelIdIntegerNot required, pass to update
- modelNumberString
- notesStringNot required

userId Integer:Id of the user executing the function


Returns

modelId Integer
message String None if success


Example