save_template
Save a user-owned DSL template for later reuse via /api/v1/render. Validates the DSL with the catalog before persisting. Free (no credits). Pass sampleData (any JSON value) so the template's binding shape is preserved — the modify-template flow on /ai/chat round-trips this back into the Render data panel when the user returns. Optional description is a one-sentence summary surfaced on /templates. Returns { templateId, name, createdAt }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dsl | Yes | The builder DSL script (<=512KB). | |
| name | Yes | Human-readable template name. | |
| sampleData | No | Optional JSON binding data to persist alongside the template. Round-tripped on get_template / modify-template flow. | |
| description | No | Optional one-sentence summary (max 280 chars). Surfaced on /templates list rows. |