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. A draft that removes a contact.* or custom.* tag the live template uses, or keeps under 40% of its body's words, is refused with details.code template_overwrite (removedTags, kept, dropCount) until the person agrees and confirmOverwrite: true is sent; when LinkDrop asks the person to confirm the publish itself, that yes counts. 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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"templateId": "<templateId>"
},
"name": "lnkdrp_publish_email_template_draft"
}
}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. | |
| confirmOverwrite | No | true: the person agreed to a change that removes the template's person or custom tags or replaces most of its words (template_overwrite). | |
| confirmationToken | No | The confirmationToken from that preview. |