Update email draft
postfjord_update_campaignChanges 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.
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": {
"campaignId": "<campaignId>"
},
"name": "postfjord_update_campaign"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | An internal name, only the team sees it. | |
| tags | No | Send only to contacts with any of these tags, by tag name. | |
| blocks | No | Replaces all blocks, top to bottom. | |
| segment | No | Send only to this saved segment, by name or id. | |
| subject | No | The new subject line. | |
| everyone | No | Send to everyone who said yes again. | |
| preheader | No | The line inboxes show after the subject. | |
| campaignId | Yes |