Publish an email template draft
lnkdrp_publish_email_template_draftPublishes an email template draft as the template's next version: emails made from then on use it, emails already made keep their text, and the version that was live stays in the history (lnkdrp_list_email_template_versions; lnkdrp_restore_email_template_version can make it current again). Only a publisher may: the template's owner, workspace owners and admins, its chosen publishers, or every member when it is set to everyone; anyone else is forbidden with details.code publisher_required, publishers and reviewUrl (on Free, paused and upgradeUrl). A draft the template moved past (stale) is refused validation with details.code stale_draft, liveVersion and versionsNotIncluded; replaceLive: true publishes it over the live version anyway. An image deleted since is validation with details.code image_not_an_asset; withoutImages: true publishes it without those images. When emails made from the template were sent, an active campaign uses it, or replaceLive is given, LinkDrop asks the person to confirm first. draftId left out: this person's own open draft, else the only one. Returns the template, version, the draft and versionsNotIncluded.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | The person's yes to the preview LinkDrop returned for this same action. | |
| draftId | No | The draft's id, from lnkdrp_list_drafts (kind template) or an update's draft.id. Left out: this person's own open draft, else the only one. | |
| 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. | |
| replaceLive | No | Publish a stale draft over the live version anyway. | |
| withoutImages | No | Publish it without the images whose upload was deleted. | |
| confirmationToken | No | The confirmationToken from that preview. |