API Reference > presentation-backend > Core > RulesetEmbedder > insertRuleset insertRuleset Method Overloads insertRuleset(ruleset, options?) insertRuleset(ruleset, duplicateHandlingStrategy) Deprecated insertRuleset(ruleset, options?) Inserts a ruleset into iModel. insertRuleset(ruleset: Ruleset, options?: RulesetInsertOptions): Promise<string> Parameter Type Description ruleset Ruleset Ruleset to insert. options RulesetInsertOptions Options for inserting a ruleset. Returns - Promise<string> ID of inserted ruleset element or, if insertion was skipped, ID of existing ruleset with the same ID and highest version. insertRuleset(ruleset, duplicateHandlingStrategy) Deprecated Use an overload with RulesetInsertOptions Inserts a ruleset into iModel. insertRuleset(ruleset: Ruleset, duplicateHandlingStrategy: DuplicateRulesetHandlingStrategy): Promise<string> Parameter Type Description ruleset Ruleset Ruleset to insert. duplicateHandlingStrategy DuplicateRulesetHandlingStrategy Strategy for handling duplicate rulesets. Defaults to DuplicateRulesetHandlingStrategy.Skip. Returns - Promise<string> ID of inserted ruleset element. Defined in presentation/backend/src/presentation-backend/RulesetEmbedder.ts Line 98 Last Updated: 12 June, 2024