v2

latestOpenAPI 3.0.02026-08-073221853.1 MB
Experiments
Experiments

Fully Update Experiment

post/console/v1/experiments/{id}

Path parameters

idstring required

id

Request body

namestring

The display name of the experiment

descriptionstring required

A helpful summary of what this experiment does

idTypestring required

The type of ID which the experiment is based on

secondaryIDTypestring nullable

The secondary ID type for the experiment used in WHN for ID resolution

identifierMappingMode'strictOneToOne' | 'firstTouchOneToMany' | 'lastTouchOneToMany'

The identifier mapping mode for the experiment used in WHN for ID resolution

identityResolutionSourcestring nullable

The identity resolution entity property source for the experiment used in WHN for ID resolution

hypothesisstring required

A statement that will be tested by this experiment

controlGroupIDstring

Optional control group ID

allocationnumber double required

Percent of layer allocated to this experiment

userBucketsnumber[]
primaryMetricTagsstring[]

Primary metric tags for the experiment

secondaryMetricTagsstring[]

Secondary metric tags for the experiment

tagsstring[]

Tags associated with the experiment

durationinteger

How long the experiment is expected to last in days

targetExposuresinteger

Target exposures for the experiment

targetingGateIDstring nullable required

Restrict your experiment to users passing the selected feature gate

sequentialTestingboolean

Apply sequential testing?

bonferroniCorrectionboolean required

Is Bonferroni correction applied per variant?

bonferroniCorrectionPerMetricboolean

Is Bonferroni correction applied per metric?

benjaminiHochbergPerVariantboolean

Is Benjamini-Hochberg procedure applied per variant?

benjaminiHochbergPerMetricboolean

Is Benjamini-Hochberg procedure applied per metric?

benjaminiPrimaryMetricsOnlyboolean

Is Benjamini-Hochberg procedure applied for primary metrics only?

defaultConfidenceInterval'80' | '90' | '95' | '98' | '99' required

Default error margin used for results

defaultRollupWindowinteger

Default rollup window in days for experiment results. Use -1 for cumulative. Only -1, 1, and 7 allowed for cloud experiments.

defaultChanceToBeatThresholdnumber double

Default chance-to-beat threshold used for Bayesian results.

status'active' | 'setup' | 'decision_made' | 'abandoned' | 'archived' | 'experiment_stopped' | 'assignment_stopped' required

The current status of the experiment

launchedGroupIDstring nullable

ID of the launched group, null otherwise

assignmentSourceNamestring

Source name of the assignment

assignmentSourceExperimentNamestring

Name of the source experiment for assignment

creatorIDstring nullable

The Statsig ID of the creator of this experiment

creatorEmailstring nullable

The email of the creator of this experiment

isAnalysisOnlyboolean nullable

For Warehouse Native

teamstring nullable

The team name associated with the experiment, Enterprise only.

teamIDstring nullable

The team ID associated with the experiment, Enterprise only.

allocationDurationinteger nullable

Warehouse Native Only - Allocation duration in days

cohortedAnalysisDurationinteger

Warehouse Native Only - Cohorted analysis duration in days

cohortedMetricsMatureAfterEndboolean

Warehouse Native Only - Allow cohort metrics to mature after experiment end

cohortWaitUntilEndToIncludeboolean

Warehouse Native Only - Whether to filter to units whose experiment cohort analysis duration is complete, if cohortedAnalysisDuration exists

fixedAnalysisDurationinteger

Fixed analysis duration in days

scheduledReloadHourinteger nullable

Warehouse Native only - UTC hour at which to run scheduled pulse loads

scheduledReloadType'full' | 'incremental'

Warehouse Native only - reload type for scheduled reloads

scheduledReloadDaysinteger[] nullable

Warehouse Native only - days on which to run scheduled reloads from 0 to 6, 0 meaning Sunday. Null to run reloads on all days.

turboModeboolean

Warehouse Native only - whether to run scheduled reloads with Turbo mode.

autoLoadToplineImpactboolean

Warehouse Native only - whether to automatically run topline and projected launch impact calculations when reloading experiments.

analysisEndTimestring

Warehouse Native only - end time for analysis only experiments

analyticsType'frequentist' | 'bayesian' | 'sprt'

The mode of analysis for the experiment, e.g frequentist, bayesian, sprt

defaultSPRTPowerParamnumber double

SPRT power parameter percentage used as the default for experiment analysis.

defaultSPRTMDEnumber double

Default MDE value for every metric if one isn't provided. Only used in manual mode.

sprtBaselineMode'manual' | 'in_experiment_control'

In manual mode, mde/mean/stdDev must be provided for every metric in the experiment. In in_experiment_control, only the mde is needed for every metric, or the defaultSPRTMDE field must be passed.

isSidecarboolean

Whether this is a Statsig Sidecar experiment. sidecarEditorURL, sidecarURLFilters, sidecarDisableAutoRun, and sidecarPrerunScript are saved only when this is true.

sidecarEditorURLstring

Sidecar (Visual Editor) only: the URL of the page being modified. The Visual Editor cannot open without it, and it must be an http or https URL.

sidecarDisableAutoRunboolean

Sidecar (Visual Editor) only: whether to disable auto-running the experiment on page load. By default the experiment auto runs.

sidecarPrerunScriptstring nullable

Sidecar (Visual Editor) only: a script to run before the experiment starts. Send null to clear it.

decisionReasonstring

Experiment notes reported after experiment completes

enabledNonProdEnvironmentsstring[]

Response

Fully Update Experiment Success

messagestring required

A simple string explaining the result of the operation.

Example response

{
  "message": "string",
  "data": {
    "id": "a_experiment",
    "description": "a helpful summary of what this experiment does",
    "lastModifierName": "CONSOLE API",
    "lastModifierID": "f0JAV9dd7KF0sUbi1DHWB",
    "idType": "userID",
    "status": "setup",
    "layerID": "layer1",
    "hypothesis": "Does 1 or 0 work better?",
    "primaryMetrics": [
      {
        "name": "l14",
        "type": "user"
      }
    ],
    "primaryMetricTags": [],
    "secondaryMetrics": [
      {
        "name": "mau_28d",
        "type": "user"
      }
    ],
    "secondaryMetricTags": [],
    "groups": [
      {
        "name": "group1",
        "size": 50,
        "parameterValues": {
          "key": 1
        }
      },
      {
        "name": "gruop2",
        "size": 50,
        "parameterValues": {
          "key": 0
        }
      }
    ],
    "allocation": 50.46,
    "duration": 14,
    "targetingGateID": "a_gate",
    "defaultConfidenceInterval": "95",
    "bonferroniCorrection": false,
    "tags": []
  }
}