Skip to main content

abTestPublish

Publishes a test that was never published, normally a DRAFT: it becomes RUNNING and records the publish time and user. It needs at least two variants; PATCH tests re-validate every editorPatch and SPLIT tests need redirectUrl on each non-control variant. PATCH tests saved with createSnapshots also get one snapshot per variant and device. An already published test is returned unchanged, so this cannot restart a stopped test. Requires A/B testing edit access.

abTestPublish(
id: Int!
): AbTest!

Arguments​

abTestPublish.id ● Int! non-null scalar​

Test id from abTestList, abTestRefList, or abTestCreate.

Type​

AbTest object​

A/B test settings and lifecycle returned by test lists, detail queries, and create/update operations. Metrics are populated by list queries; use abTestResultCounts for goal/date-scoped results.