Update Campaign
update-campaignUpdate a draft campaign. Passing content replaces its body and passing recipients replaces the audience list (at least one audience must be included); the previous values can't be restored.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Campaign ID (cmp_xxx) or name. | |
| name | No | ||
| tags | No | Labels for filtering and the calendar (up to 20). | |
| ab_test | No | A/B test. Send { enabled: false } to turn it off. | |
| content | No | Campaign body: HTML when content_type is html (the default), plain text when it is text. | |
| subject | No | ||
| reply_to | No | ||
| from_name | No | ||
| from_email | No | Sender address on a verified domain. | |
| recipients | No | ||
| utm_params | No | UTM overrides. Values may use {campaign_name}, {campaign_id}, {subject}, {variant}, {send_date}. | |
| track_loads | No | Override the sending domain's open tracking for this campaign. null follows the domain (the default). | |
| content_type | No | ||
| preview_text | No | Inbox preview text. | |
| track_clicks | No | Override the sending domain's click tracking for this campaign. null follows the domain (the default). | |
| utm_tracking | No | Add UTM parameters to every link (default utm_source=emailit, utm_medium=email, utm_campaign=<campaign name>). | |
| exclude_unengaged | No | Skip contacts sent 3+ campaigns in 90 days without opening or clicking any. | |
| smart_sending_hours | No | Skip contacts another campaign emailed within this many hours (16 is common). null turns it off. |