Skip to main content

abTestUpdateDraft

Saves wizard progress on a DRAFT test by replacing only its draft JSON; other statuses return an error. It skips the page check and applies neither settings nor the audience to the test, but audienceDefinition must be valid and devices must match it. Variants are dropped from the saved draft, and screenshots of every variant are queued. Use abTestUpdate to apply settings. Requires A/B testing edit access.

abTestUpdateDraft(
id: Int!
args: AbTestCreateInput!
): AbTest!

Arguments​

abTestUpdateDraft.id ● Int! non-null scalar​

Test id from abTestList, abTestRefList, or abTestCreate.

abTestUpdateDraft.args ● AbTestCreateInput! non-null input​

Replacement draft metadata; variants are discarded and stored test settings are not applied.

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.