Skip to content

Add Split Test Variant

Tool name: add-newsletter-split-test-variant

Adds an email newsletter split-test variant, empty or copied from copyFromEmailId. Returns all variants and their editor URLs; audience shares are redistributed evenly. A test needs at least two variants to send. Refused after the test starts; sends nothing.

Input schema

campaignIdinteger, >= 1required

ID of the split test campaign (a newsletter ID)

copyFromEmailIdnull or integer, >= 1

Email ID of the variant to copy, from splitTestVariants; omit for an empty variant

Default:null
accountIdnull or integer, >= 1

User ID of the account; omit for the account the access token works in

Default:null
Input example
{ "campaignId": 1, "copyFromEmailId": null, "accountId": null }

Output schema

accountIdintegerrequired
newsletterIdintegerrequired
variantsArray of objectsrequired
variantCountintegerrequired
needsMoreVariantsbooleanrequired
sharePerVariantPercentintegerrequired
testSizePercentintegerrequired
testDurationHoursintegerrequired
winnerBystring or nullrequired
hasStartedbooleanrequired
Output example
{ "accountId": 0, "newsletterId": 0, "variants": [ { "emailId": 0, "label": "string", "name": "string", "subject": "string", "editorUrl": "string", "contentRevision": "string" } ], "variantCount": 0, "needsMoreVariants": true, "sharePerVariantPercent": 0, "testSizePercent": 0, "testDurationHours": 0, "winnerBy": "string", "hasStarted": true }