Update email draft
postfjord_update_campaignChanges the subject, preheader, name, blocks or audience of a draft email by sending only what changes. Use it to edit a draft in place; unschedule a scheduled email first, since only drafts can be changed.
Instructions
Changes the subject, preheader, name, blocks or audience of a draft email; only send what changes. The audience is tags (tag names), segment (a saved segment) or everyone: true, one of the three. blocks replaces all blocks: keep a block as it is with { "type": "keep", "id": "..." } using ids from postfjord_get_campaign. A block written back with its id stays in its background box. Only a draft can change; a scheduled email must be unscheduled first with postfjord_cancel_campaign. Automation emails are changed in the app.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| tags | No | Send only to contacts with any of these tags, by tag name. | |
| blocks | No | ||
| segment | No | Send only to this saved segment, by name or id. | |
| subject | No | ||
| everyone | No | Send to everyone who said yes again. | |
| preheader | No | ||
| campaignId | Yes |