Email Campaigns AB Tests
POST (Create) an A/B Test for an Email Campaign Activity
Changed onUse 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
Request
- Base URLhttps://api.cc.email/v3
- URLhttps://api.cc.email/v3/emails/activities/{campaign_activity_id}/abtest
- Auth
- OAuth 2Implicit: https://authz.constantcontact.com/oauth2/default/v1/authorizeScopes: campaign_data
- or OAuth 2Authorization code: https://authz.constantcontact.com/oauth2/default/v1/authorizeToken URL: https://authz.constantcontact.com/oauth2/default/v1/token scopes: campaign_data
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
}Changes
- info
the endpoint scheme security
api_keywas removed from the API
- info
- info
endpoint added
- info