Update email template
lnkdrp_update_email_templateappUrl is this item's page in LinkDrop, for someone signed in. Changes an email template: any of name, description, format, align, subject, body and tags; a field left out stays as it is, description: null clears it, and tags replaces the whole tag list. The same checks as creating apply to the result (known tags, at least one {{link.}} placed, no {{link.url}}, no scripts in HTML, images only from this workspace's uploads); a tags list that declares a link-like custom tag is refused with details.code custom_tag_is_link, and a template whose tags are not sent keeps the ones it has. Tags are written {{entity.field}}, or {{entity.field|fallback}} for text used when the value is empty. Built-in tags, filled by LinkDrop for each recipient: contact.firstName: The first word of the contact's name. (e.g. Ken); contact.name: The contact's name: the name the team gave them, else the name they gave. (e.g. Ken Lee); contact.lastName: Everything after the first word of the contact's name. (e.g. Lee); contact.email: The contact's email address. (e.g. ken@example.com); contact.company: The domain of the contact's address; empty for a webmail address such as gmail.com. (e.g. acme.com); contact.note: The team's notes on the contact, as written; they go into the email exactly as they are. Notes over 2,000 characters read as empty. (e.g. Met at the October demo day.); contact.tags: The contact's tags, comma-separated. (e.g. Investor, Seed); contact.firstSeen: When LinkDrop first saw the contact, e.g. October 22, 2026. (e.g. October 22, 2026); contact.lastSeen: When the contact was last seen, e.g. October 22, 2026. (e.g. October 22, 2026); contact.visits: How many times the contact has viewed, as a number. (e.g. 3); document.title: The document's title (document emails only). (e.g. Q3 investor update); project.name: The project's name (project emails only). (e.g. Series A data room); sender.name: The name of the member the email is from. (e.g. Chris); sender.firstName: The first word of the sender's name. (e.g. Chris); sender.email: The sender's LinkDrop account email (not necessarily the Gmail address the email goes out from). (e.g. chris@example.com); workspace.name: The workspace's name. (e.g. LinkDrop); sender.signature: The sender's signature from Outreach settings; empty when they have none or this email leaves it out ("Include my signature"). Without this tag the signature goes after the body.. A template's documents are its links (a chip on the template page), each placed in the body by its {{link.}}, as often as wanted: every recipient gets their own tracked link to each, made with that slot's settings and reused on every render. A project slot is one link to all of the project's documents. A document slot opening at a page is written {{link.#7}}: the same link, opening at page 7; page 1 is the plain tag. A template places at least one of its links; {{link.url}} is retired, and a subject or body with it is refused (link_url_retired). {{sender.signature}} is the sender's email signature (formatted, set with lnkdrp_set_email_signature or pulled from Gmail in Outreach settings): it goes in the body only, at most once, with no fallback, and in an html body only where text goes (not inside a tag, a style, a comment, or a link's words); elsewhere the save is refused as validation (details.code html_not_allowed for the html cases). Without it, the signature goes after the body. Either way it carries its "-- " line, when that email or drop includes it (includeSignature; left out, as the sender's setting says: on for include all, off for on_demand). A template's own previews show no signature. Custom tags are {{custom.name}}, each declared in tags with a description of what it stands for, and hold words taken from lnkdrp_render_email's values; a custom tag whose name or description reads as a link (..._link, ..._url, an address) is refused as validation with details.code custom_tag_is_link. The app shows each as {{name}}, without custom. An HTML body shows images only from this workspace's uploads: an image is uploaded with lnkdrp_upload_email_asset and placed with the imgTag it returns (lnkdrp_list_email_assets lists those already uploaded). Any other image source (another site, data:) is refused as validation with details.code image_not_an_asset, on save, render and send; a javascript: URL or a is details.code html_not_allowed. The text version shows an image as [alt]. Each image is kept under 10 MB on every plan (big images make emails slow to open and more likely to be clipped or land in spam): an uploaded image over it in the body is swapped for a smaller copy on save. One email shows at most 10 images, 20 MB in all: over that, the save makes the images smaller, the largest first, until the email fits (reason email). imagesResized [{ name, from, to, assetId, note, reason }] lists each one. When it cannot fit, the save is refused as validation with details.code too_many_images or images_too_heavy, a sentence saying the limit and what to change, and details.limits. Emails already rendered from it keep the text they were rendered with. Each change that changes something is saved as the template's next version (template.version); lnkdrp_list_email_template_versions lists them. A template saved by someone else after this connection last read or saved it (or after baseVersion or baseUpdatedAt) is not overwritten: the call answers validation with details.code conflict, currentVersion and currentUpdatedAt, and nothing is saved. Returns the template, unusedTags and warnings: notes as { code, message } on a template that saved as sent. body_self_centred: the html body's outermost element centres itself with auto side margins (margin: 0 auto) while align is left, so the email still shows centred; the body is saved unchanged. link_unused: one of the template's links is not placed in the body, so that document goes out to no one. no_documents: the saved template has no documents, so nothing renders or sends from it until it has one (links: [{ docId }], placed as {{link.}}). visibility makes the template private to its owner or shares it with the team (not a document's visibility, lnkdrp_set_doc_visibility); it is sent with no other field (visibility with another field is validation) and moves no version. Making it private takes its owner or a workspace owner or admin, and an owner or admin making someone else's template private makes it private to that person; sharing a private template takes its owner; anyone else is forbidden. Another person's private template is not_found. projectIds files the template under projects: it is sent with no other field (projectIds with another field is validation), replaces the projects this person can see, moves no version and is not saved as a draft, so any member files a template whether or not they may publish it. A live change that removes a contact.* or custom.* tag the template uses, or keeps under 40% of its body's words, is refused with details.code template_overwrite (removedTags, kept, dropCount) and nothing is saved, until the person agrees and confirmOverwrite: true is sent; a drop's own words are its custom tags (lnkdrp_personalize_drop_emails), and the template is shared by every drop using it. A request to change one drop's email (its intro, its bullets, its closing) is a change to that drop's custom tags (lnkdrp_personalize_drop_emails / lnkdrp_update_drop_email), not to the template; change the template only when the person says the template. A live change to a template that one or more unsent drops share is refused as validation with details.code template_unsent_drops and details.drops (each drop's campaignId, name, type and appUrl): name those drops to the person and ask whether they meant the template or one drop's custom tags, then send the change again with confirmUnsentDrops: true if they meant the template; the confirmed save's answer carries unsentDrops naming them. Only the template's publishers change it live (its owner, workspace owners and admins, its chosen publishers, or everyone when it is set so). Anyone else's change is saved as their own draft, one per person, and the live template is unchanged: the result has saved: draft, draft { id, version, baseVersion, updatedAt, reviewUrl, publishers } and message; a publisher saves a draft with draft: true. The next update by the same person changes the same draft. On Free a non-publisher is forbidden with details.code publisher_required and upgradeUrl. lnkdrp_publish_email_template_draft publishes a draft.
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_update_email_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | The body, with tags (up to 50,000 characters); places at least one of the template's documents (links) as {{link.<key>}}. An html body that names no font or size shows in the reader's mail app's own (Gmail: Arial, 13px); a size it names is kept between 10px and 32px. | |
| name | No | The template's name, unique in the workspace (1-80 characters). | |
| tags | No | Tag declarations: every {{custom.x}} used, with its description; a built-in may be listed to override its description or required. | |
| align | No | Where an html email sits in the reader's window. left (the default): nothing is added around the body, so it shows flush left. center: the body is placed in a centred column at most 600px wide. The text version is unaffected. | |
| draft | No | true: save the change as this person's draft even when they may publish. | |
| links | No | The template's documents and projects, each placed in the body by {{link.<key>}} wherever it should appear (as often as wanted); at least one is placed. Every recipient gets their own tracked link to each, made with its settings, when the email is rendered: a drop or email made from the template names no document of its own. With two or more, {{link.password}}, {{document.title}} and {{project.name}} are refused (link_tag_ambiguous). A slot the person placed on the template page without choosing its document yet answers pending: true with docId null; until every placed slot has one, a drop, render or send from the template is refused (link_document_missing): this tool with links giving that key its docId fills it. password is the chip's default link password (the word itself in the answer, webapp#563: a deterrent, not a secret) and passwordRequired says every link from it needs one: a drop's own password (lnkdrp_update_drop linkPassword) or a person's (lnkdrp_update_drop_email linkPassword) wins over the default. On an update the list replaces the template's documents. | |
| format | No | text: a plain-text body (an HTML version is derived from it). html: an HTML body (a text version is derived from it). | |
| draftId | No | This person's open draft of the template to change; left out, their open draft if any. | |
| subject | No | The subject line, with tags (one line, up to 200 characters). | |
| projectIds | No | The projects the email template is filed under (up to 20 ids; [] for none). It replaces the projects this person can see; projects they cannot see stay as they are. | |
| templateId | Yes | Email template id (24 hex chars), from lnkdrp_list_email_templates. | |
| visibility | No | private: only its owner sees the email template. team: everyone in the workspace sees it. Not a document's visibility (lnkdrp_set_doc_visibility). | |
| baseVersion | No | The template's version as it was read. Left out, the version this connection last read or saved for the template is used, and none when it has not read it. | |
| description | No | What the template is for (up to 500 characters); null clears it. | |
| draftVersion | No | The draft's version as it was read. Left out, the version this connection last saved for the draft is used. | |
| baseUpdatedAt | No | The template's updatedAt as it was read. Left out, the updatedAt this connection last read or saved for the template is used, and none when it has not read it. | |
| 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). | |
| confirmUnsentDrops | No | true: the person was asked about the unsent drops and chose to change the template itself, not one drop's custom tags (template_unsent_drops). |