Apply Domain Template
lexq_domain_templates_applyApply a domain template to the current tenant. Creates the template's fact definitions and a new policy group pre-populated with its sample rules as a DRAFT version. Existing facts are skipped — apply is additive and never overwrites existing schema. Run lexq_domain_templates_preview first to review what will be created. Only ACTIVE templates can be applied.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| template | Yes | Domain template key to apply (e.g. ECOMMERCE). | |
| customName | No | Optional custom name for the policy group that gets created. If omitted, the template's default name is used. |