Promote model to template
layerz_promote_templatePromote a model you own into a reusable template — flips it in place (no copy), so it keeps its content and stays editable, and surfaces in layerz_list_templates. The template's blueprint is derived on demand and its usage guide IS the model's FINANCE.md, so edit the guide later via layerz_set_finance_md on the same model. scope defaults to user (private, Pro feature). scope: 'system' publishes into the curated onboarding catalog visible to everyone and is admin-only. Not available for read-only or model-scoped API keys.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Template title — renames the model in place when it differs. | |
| scope | No | Template scope. `user` (default) = private, owner-only, Pro-gated. `system` = curated public catalog, admin-only. | |
| 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. | |
| description | No | Optional usage guide (FINANCE.md). Leaves the model’s own when omitted. |