Skip to main content

abTestUpdateVariants

Updates variants of a DRAFT or RUNNING test, matched by id; ids that are not variants of this test are skipped. Use abTestAddVariants to append variants. A supplied editorPatch is validated, an omitted weight is cleared, and screenshots and per-variant snapshots of the updated variants are recaptured. Requires A/B testing edit access.

abTestUpdateVariants(
id: Int!
variants: [AbTestVariantInput!]!
): AbTest!

Arguments​

abTestUpdateVariants.id ● Int! non-null scalar​

Test id from abTestList, abTestRefList, or abTestCreate.

abTestUpdateVariants.variants ● [AbTestVariantInput!]! non-null input​

Each entry needs the id of a variant of this test, from abTestEditorDetail or abTestRefList; entries with other ids are skipped.

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.