Update a template draft
update_templateEdit an existing custom template's DRAFT — name, html, css, schema, tags, visibility — addressed by UUID or slug. Only the fields you pass are changed. Crucially, this does not change what renders once the template has been published even once: while published_version is set, render_pdf serves that frozen snapshot and your edits stay invisible until publish_template moves the pointer, so an edit that appears to do nothing usually needs a publish. System templates, and templates belonging to another account, return 403. Requires a Kamy API key with the templates:write scope; without a key, returns dashboard setup instructions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| css | No | Replaces the draft CSS entirely. | |
| html | No | Replaces the draft HTML entirely. | |
| name | No | ||
| tags | No | ||
| schema | No | Replaces the draft JSON Schema entirely. | |
| isPublic | No | ||
| template | Yes | Template UUID or slug. This route accepts either. | |
| description | No |