Tool name: configure-newsletter-split-test
Writes the settings of a split test -- the audience share sent to the test variants, the measuring period and the winner criterion -- and returns the test with its variants. Omitted arguments keep their value, a call without any change is refused, and a started test refuses the write. Whether a campaign is a split test at all is decided at creation and cannot be changed here. "conversions" and "revenue" require the conversion pixel and are refused without it; "opens" and "clicks" are always available. Variants are changed by add-newsletter-split-test-variant, -update and -remove. Nothing is sent.
Share of the audience the variants go to, 2 to 98; omit to keep
Measuring period before the winner goes to the rest, 1 to 27777 hours; omit to keep
"opens" (open rate), "clicks" (unique clicks), "conversions" or "revenue" (both need the conversion pixel); omit to keep
{ "campaignId": 1, "testSizePercent": null, "testDurationHours": null, "winnerBy": "opens", "accountId": null }
{ "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 }