Create a form A/B setup

Create a draft form A/B setup from an existing popup or flyout form.
The two variants are identical copies of the main form at creation time and can be edited separately afterward.
When versions are omitted, both variants receive a weight of 50.

Scopes:
forms.write

Body Params

Form A/B setup to create

Request to create a draft form A/B setup.

string
required

Main form unique identifier

versions
array of objects
length between 2 and 2

Two competing form variants. When omitted, both variants use a weight of 50

versions

Form A/B setup version to create.

string

Variant form name

integer
1 to 99

Traffic distribution weight. Each weight must be at least 1 and both weights must sum to 100

Form A/B setup version to create.

string

Variant form name

integer
1 to 99

Traffic distribution weight. Each weight must be at least 1 and both weights must sum to 100

Headers
string
required
Defaults to 2026-preview

API version that specifies the response format and behaviour

Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json