Mailcoach icon

Mailcoach

Interact with Mailcoach API - Manage email lists, subscribers, campaigns, and transactional emails

Campaign → Update

AI-generated

Summary

Update an existing Mailcoach email campaign by specifying its UUID and the fields to modify, such as subject, sender details, template, content, tracking options, and segment.

Inputs

  • Campaign ID (required) — The UUID of the campaign to update.
  • Subject — The updated email subject line.
  • Additional Fields — A collection of optional fields to update including sender email and name, reply-to details, template UUID, email HTML content (html, structured_html, email_html), tracking options (track_opens, track_clicks), UTM tag inclusion, segment UUID, and template-specific key/value fields.

Output shape

a single JSON object representing the updated campaign's data as returned by the Mailcoach API.

The output contains the updated campaign record. Fields not specified in the update request remain unchanged. If 'fields' are provided in Additional Fields, they are formatted from a fixed collection of key/value pairs into an object mapping keys to values before sending.

Examples

Example 1: Update the subject and sender email of an existing campaign

Provide the Campaign ID, set the new 'Subject' string, and optionally set 'From Email' in Additional Fields.

Discussion