DocMiral icon

DocMiral

Interact with the DocMiral document generation platform

Template → Update

AI-generated

Summary

Update a template in the DocMiral platform by specifying its Template ID and the fields to change such as name, HTML content, header, footer, or settings.

Inputs

  • Template ID (required) — The unique identifier of the template to update.
  • Update Fields — A collection of optional fields to update on the template including 'Name', 'HTML', 'Header Content', 'Footer Content', and 'Settings (JSON)'. Each field is optional, and only provided fields will be updated.

Output shape

a list containing the updated template object(s) in JSON format

Returns the updated template object(s) as JSON. If multiple items are input, each updated template is returned paired with the corresponding input. Errors are returned per item if continueOnFail is set.

Examples

Example 1: Update template name and HTML content

Set Template ID to the target template's ID, and updateFields with 'name' and 'html' values to update the template's name and HTML code.

Links

Discussion