Choose who can publish an email template
lnkdrp_set_email_template_publish_modeSets who may publish an email template (edit it live, publish a draft, restore a version): default (follow the workspace's setting, lnkdrp_update_settings), owners (the template's owner and workspace owners and admins), chosen (they and up to 5 more members, userIds by id or email address) or everyone (every member; viewers cannot publish). Everyone else saves their changes as a draft for them. chosen and everyone are Pro (plan_limit with upgradeUrl on Free; a saved choice there is paused, and keeping or narrowing it still works). The template's owner, workspace owners and admins, and in owners or chosen mode its publishers may change it; anyone else is forbidden with details.code cannot_edit_publishers. A private template is published by its owner only (validation). LinkDrop asks the person to confirm first. Returns publishing (mode, paused, publishers) and changed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | default, owners, chosen (with userIds) or everyone. | |
| confirm | No | The person's yes to the preview LinkDrop returned for this same action. | |
| userIds | No | For chosen: member user ids or email addresses (up to 5 after owners and admins are left out). | |
| 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. | |
| confirmationToken | No | The confirmationToken from that preview. |