Skip to content

Campaigns Update ​

lindris campaigns update

Update a draft campaign's name, subject, sender or reply-to

Synopsis ​

PUT /api/campaigns/{id} — update one or more fields of a DRAFT campaign. At least one flag is required. Non-draft campaigns are rejected by the API (422, not 403).

Flags carry only the values you set; an empty string means "leave unchanged", not "clear" — pass a non-empty value to change a field.

Recipient targeting is not settable over the API: choose the audience in the dashboard (see the editor link from campaigns get).

bash
lindris campaigns update <id> [flags]

Examples ​

bash
$ lindris campaigns update 123 --subject="Welcome aboard"
$ lindris campaigns update 123 --sender-name="Acme" [email protected]
$ lindris campaigns update 123 [email protected]

Options ​

  • --name string - New campaign name (max 255 chars)
  • -o, --output string - Output format: json|text. Default: json
  • --preview-text string - Inbox preview text (max 500 chars)
  • --reply-to-email string - Reply-to email address (max 254 chars)
  • --reply-to-name string - Reply-to display name (max 255 chars)
  • --sender-email string - Sender email address (max 254 chars)
  • --sender-name string - Sender display name (max 255 chars)
  • --subject string - Email subject line (max 500 chars)

See Also ​