Update template
update_templateChange a template. Send base_revision, the revision you read; a newer revision answers template_version_conflict. What you leave out stays as it was: send body, markdown or html to replace the document, name to rename it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | An editor document, as get_template returns it. Images are PNG or JPEG data URLs or asset ids. get_template_format describes every key. | |
| html | No | HTML to import; {{path}} becomes a field. | |
| name | No | A new name. Omit to keep the name. | |
| markdown | No | Markdown to import; {{path}} becomes a field. | |
| template | Yes | The template's id or its name, as list_templates gives them. | |
| base_revision | Yes | The revision you read with get_template or list_templates. |