Email Campaigns AB Tests
POST (Create) an A/B Test for an Email Campaign Activity
Use this method to create a new A/B test for a primary email campaign activity. You must specify an alternative subject line, the percentage of contact to use for the A/B test, and the number of hours to wait after the A/B test is sent before determining the winning subject line. To create an A/B test, the campaign must have a current_status of DRAFT. When you create an A/B test, the type changes from Newsletter (code= 10) to A/B Test (code= 57).
post/emails/activities/{campaign_activity_id}/abtest
Path parameters
campaign_activity_idstring required
The unique ID for the primary email campaign activity.
Request body
Example request
{
"alternative_subject": "Reminder: Our Biggest Sale of the Year is Coming Soon!",
"test_size": 30,
"winner_wait_duration": 24
}Response
Request successful.
Example response
{
"alternative_subject": "Reminder: Our Biggest Sale of the Year is Coming Soon!",
"test_size": 30,
"winner_wait_duration": 24
}