Import mapping template
layerz_import_mapping_templateImport a mapping template (or one of your catalogs) into this model by DUPLICATING its rules into the model's single mapping set ("one model = one set"; an imported rule wins on a pattern conflict). Each rule's target is translated to this model's items by display name. This is how a template "applies" — there is no implicit cross-model application. template_id is a set id from layerz_list_mappings templates (scope system_template or user_template). Re-sync to classify with the new rules. Not available for read-only API keys.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| summary | Yes | Required: short human-readable note (3–100 chars) summarising what this change does. Shown as the label in the model version history. Be specific (e.g. "Renamed Revenue to Net Revenue", "Imported 2024 OPEX from Excel"). | |
| model_id | No | Target model UUID. Required for user-scoped API keys; ignored (or validated against scope) for model-scoped keys. | |
| template_id | Yes | Template/catalog set id (from layerz_list_mappings `templates`). |