Update subscription form
update_subscription_formUpdates editable content, consent, design, redirect, DOI email, opt-in, or default-tag settings of one inviomail subscription form. Set firstNameRequired to true to require a first name or false to make it optional; omission retains the current setting. First call get_subscription_form and pass its exact revision as expectedRevision. Changes to an active form are public immediately. doiEmail.senderIdentityId sets an optional active sender identity ID; null inherits the central DOI sender, then tenant default, and omission retains the saved selection. The override applies only with double opt-in and doiEmail.mode custom. Switching mode to tenant_default disables the override but retains it with the draft. Sender changes apply to the next initial DOI send, resend, or reminder, even for pending requests. Read active identity choices from get_subscription_form. Central DOI sender settings are managed in the admin UI. isActive activates or deactivates public subscriptions immediately. Activating/publishing a form as part of the requested task needs no additional user confirmation. Changing slug changes the public URL and breaks existing links. Use manage_subscription_form_webhook for webhook operations. This tool cannot delete the form.
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": {
"formId": "<formId>",
"expectedRevision": "<expectedRevision>"
},
"name": "update_subscription_form"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| slug | No | Changing the slug changes the public URL and breaks existing links | |
| formId | Yes | Subscription form ID | |
| doiEmail | No | Form-specific DOI confirmation email and optional sender override. Use double-brace camelCase placeholders ({{firstName}}, {{email}}, {{accountName}}; body also {{confirmUrl}} and {{confirmLink:Your link text}}). Old square-bracket placeholders are rejected. Sender precedence is active form override, central DOI sender, tenant default. mode tenant_default disables the text and sender overrides while retaining the saved draft; single opt-in sends no DOI email. Changes apply to the next initial send, resend, and reminder, including pending requests. Commerce DOI uses the central DOI sender without form overrides. | |
| headline | No | ||
| isActive | No | Activate or deactivate public subscriptions immediately | |
| optInMode | No | Opt-in behavior. Double opt-in is recommended. Single opt-in additionally requires platform-admin approval for this tenant (request via support@inviomail.de), a visible consent checkbox and privacy policy URL. Without approval, existing single-opt-in forms cannot accept submissions. Commerce receivers and direct contact management are exempt. | |
| defaultTags | No | Complete replacement list of tags assigned by future form submissions | |
| description | No | ||
| submitLabel | No | ||
| contentAlign | No | ||
| showHeadline | No | ||
| buttonTextColor | No | ||
| showDescription | No | ||
| expectedRevision | Yes | Exact revision returned by the latest form read | |
| outerBorderWidth | No | ||
| firstNameRequired | No | Require a non-blank first name for this form, including form webhook and API submissions. Defaults to false (optional first name) on creation; omission on update retains the current setting. After changing it, replace previously embedded HTML snippets to update their field display. | |
| privacyConsentUrl | No | Privacy policy URL, or null to clear it | |
| buttonBorderRadius | No | ||
| pendingRedirectUrl | No | Form-specific pending-page URL override, or null to inherit the tenant default | |
| showPrivacyConsent | No | ||
| cardBackgroundColor | No | ||
| privacyConsentLabel | No | Consent checkbox label; null restores the inviomail default | |
| confirmedRedirectUrl | No | Form-specific confirmation-page URL override, or null to inherit the tenant default | |
| outerBackgroundColor | No | ||
| buttonBackgroundColor | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| form | Yes | ||
| requestId | Yes |