API Reference > imodeljs-backend > Categories > SubCategory > insert insert MethodStatic Insert a new SubCategory insert(iModelDb: IModelDb, parentCategoryId: string, name: string, appearance: Props | SubCategoryAppearance): string throws IModelError if unable to insert the element. Parameter Type Description iModelDb IModelDb Insert into this iModel parentCategoryId string Insert the new SubCategory as a child of this Category name string The name of the SubCategory appearance Props | SubCategoryAppearance The appearance settings to use for this SubCategory Returns - string The Id of the newly inserted SubCategory element. Defined in core/backend/src/Category.ts Line 94 Last Updated: 11 June, 2024