Campaigns

Create CampaignContent

Creates a new content record for the given Campaign.

post/shop/customers/campaigns/{campaignId}/contents

Request body

localestring required

The BCP 47 locale code for this content variant.

subjectstring

The email subject line for this content variant.

contentstring

The email body content in markdown.

Example request

{
  "locale": "en-GB",
  "subject": "Exclusive summer offer just for you",
  "content": "Hi there! We have a special offer just for you."
}

Response

The campaign content was successfully retrieved.

Example response

{
  "data": {
    "locale": "en-GB",
    "subject": "Exclusive summer offer just for you 🌞",
    "content": "<p>Hi there! We have a special offer just for you.</p>"
  }
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.