Create an onboarding A/B test
POST /api/v1/ux/ab-tests
POST
/api/v1/ux/ab-tests
UX-01: Create a new onboarding variant experiment. Rejects variant configs that drop any required compliance step with HTTP 400 COMPLIANCE_VIOLATION.
Authorizations
Request Body required
Request body for POST /api/v1/ux/ab-tests.
object
hypothesis
required
string
min_observations
integer
name
required
string
variant_type
required
string
variants
required
Array<object>
Runtime config payload for one onboarding variant.
The ordered_step_ids list, when present, is validated by the
compliance invariant guard against
:data:src.core.compliance.onboarding_invariants.REQUIRED_COMPLIANCE_STEPS.
A variant with no ordered_step_ids inherits the control
flow unchanged and is never allowed to hide compliance steps.
Responses
201
Successful Response
object
key
additional properties
any
422
Validation Error
object
detail
Array<object>
object
ctx
object
input
loc
required
Array
msg
required
string
type
required
string