Skip to navigation

Set campaign content

Set the content for a campaign.

Authentication

AuthorizationBearer

Authorization using a Mailchimp API key (a.k.a. Bearer token)

OR
AuthorizationBearer
Authorization using OAuth

Path parameters

campaign_idstringRequired
The unique id for the campaign.

Request

This endpoint expects an object.
archive_htmlstringOptional
The Archive HTML for the campaign.
htmlstringOptional
The raw HTML for the campaign.
plain_textstringOptional

The plain-text portion of the campaign. If left unspecified, we'll generate this automatically.

variate_contentslist of objectsOptional
Content options for multivariate campaigns.

Response

This endpoint returns an object.
archive_htmlstringOptional
The Archive HTML for the campaign.
htmlstringOptional
The raw HTML for the campaign.
plain_textstringOptional

The plain-text portion of the campaign. If left unspecified, we'll generate this automatically.

variate_contentslist of objectsOptional
Content options for multivariate campaigns.