Skip to content

CLI command

tinbox update-campaign

Update a campaign's settings or content. Only works for campaigns in draft or in_review status. Use to edit subject, content, audience/segment, sender details (from/reply-to/preview text), or move/clear the proposed send time (null clears it).

Generated from tool: update_campaign

Usage

sh
tinbox update-campaign --id <id> --subject <subject> --content <content> --title <title> --audienceId <audienceId> --segmentId <segmentId> --fromName <fromName> --fromEmail <fromEmail> --replyTo <replyTo> --previewText <previewText> --proposedSendAt <proposedSendAt>

Flags

NameTypeRequiredDefaultDescription
--idstringyes—The campaign id.
--subjectstringyes—New email subject line.
--contentstringyes—New email body content (markdown).
--titlestringyes—New internal title.
--audienceIdstringyes—Change target audience.
--segmentIdstringyes—Change the segment (null = whole audience).
--fromNamestringyes—Sender name.
--fromEmailstringyes—Sender email.
--replyTostringyes—Reply-to address.
--previewTextstringyes—Inbox preview text.
--proposedSendAtstringyes—Move the PROPOSED send time (Unix ms), or null to clear it. Draft-only; a human still schedules.