insertModel Method

Deprecated  Use EditTxn.insertModel instead, within an explicit EditTxn scope (or via withEditTxn). See EditTxn documentation for migration help.

Insert a new model.

insertModel(props: ModelProps): string

@returns The newly inserted model's Id.

@throws IModelError if insertion fails.

Parameter Type Description
props ModelProps The data for the new model.

Returns - string

The newly inserted model's Id.

Defined in

Last Updated: 18 April, 2026