Update Email Trigger
meisa_update_triggerUpdate fields on an existing email trigger (PATCH-style). Only the fields you pass are changed; everything else stays as-is. Use this when the user wants to repoint a trigger to a different template, change its name or description, toggle is_active, or update guardrail flags. The trigger_key itself is intentionally NOT editable; to rename, create a new trigger and have callers migrate before deleting the old one. Requires the trigger_id (use meisa_list_triggers to find it).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New human-readable name. | |
| is_active | No | Toggle whether the trigger accepts send requests. | |
| sender_id | No | UUID of a SenderIdentity to use, or empty string to clear back to product default. | |
| conditions | No | Replace the send conditions. Pass [] to clear them (always send). Conditions are evaluated against the contact at send time; if they do not pass, the send is skipped. | |
| delay_unit | No | Unit for delay_value. | |
| trigger_id | Yes | The UUID of the trigger to update. | |
| delay_value | No | Send delay amount. 0 sends immediately; a positive value schedules the send. | |
| description | No | New internal description. | |
| template_id | No | Repoint the trigger at a different template. Use meisa_list_templates to find a UUID. | |
| email_category | No | Subscription category, so recipients can unsubscribe from this kind of email and keep the rest: 'onboarding' (tips and onboarding), 'product_updates', 'promotions' (offers and discounts), 'newsletter'. Empty string = automatic: the template's category decides (promotional -> promotions, announcement -> product_updates, newsletter -> newsletter), otherwise sequences and triggers use 'onboarding' and broadcasts use 'product_updates'. Ignored on triggers with override_unsubscribe (those are transactional and always send). | |
| condition_logic | No | Whether ALL conditions must pass ('all') or ANY one ('any'). | |
| skip_rate_limit | No | Skip the per-contact 24h rate-limit guardrail. | |
| subject_override | No | Override the template's subject line. Empty string clears the override. | |
| expected_variables | No | Replace the documented expected_variables list. | |
| override_unsubscribe | No | Send even to unsubscribed contacts (transactional only). | |
| skip_duplicate_check | No | Skip the duplicate-template guardrail. |