Restore an email template version
lnkdrp_restore_email_template_versionMakes an earlier version of an email template current again by saving its fields (name, description, format, align, subject, body, tags) as the template's next version. Nothing is deleted: the version that was current stays in the history (lnkdrp_list_email_template_versions), and emails already rendered or sent keep their own text. When emails made from the template were sent, LinkDrop asks the person to confirm first, showing what would change. Refusals: validation with details.code already_current (that version's fields are the current ones), conflict with currentVersion (the template was saved after this connection last read it), name_taken (an active template now has that version's name) or template_archived; image_not_an_asset when an image in that version was deleted, and withoutImages: true restores it without those images; not_found for a version or template that does not exist. Only the template's publishers may restore (its owner, workspace owners and admins, its chosen publishers, or everyone when it is set so); anyone else is forbidden with details.code publisher_required and publishers (on Free, upgradeUrl). Returns the template with its new version, the version written and restoredFromVersion.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | The person's yes to the preview LinkDrop returned for this same action. | |
| version | Yes | The version to make current again. | |
| templateId | Yes | Email template id (24 hex chars), from lnkdrp_list_email_templates. | |
| alwaysAllow | No | Records the person's own standing permission for this tool on this connection. | |
| withoutImages | No | Restore it without the images whose upload was deleted. | |
| confirmationToken | No | The confirmationToken from that preview. |