Skip to main content

An experiment rule that links a feature value to an existing experiment.

type
string
required

Must be "experiment-ref" for an experiment rule.

Allowed value: "experiment-ref"
experimentId
string
required

ID of the linked experiment.

variations
object[]
required
description
string
enabled
boolean
condition
string
savedGroups
object[]
prerequisites
object[]
allEnvironments
boolean

When true the rule applies to all environments. Defaults to false.

environments
string[]

Specific environment IDs this rule applies to. Used when allEnvironments is false.

sparse
boolean

JSON features only. When true, each variation value is a partial object merged onto the feature's default value instead of replacing it.