Update Experiment
Updates the targeting rules, treatment allocation, or hypothesis of an existing experiment or feature flag. To change its lifecycle, use the activate, pause, and end endpoints instead. Requires experiment:manage on the owning account.
Authorizations
An Account API key, an App API key, an account access token, an account-scoped user token, or a user OAuth token. Prepend the key or token with Bearer, for example Bearer ***************************. See Auth & API keys for how to get each one.
Query Parameters
Body
How the experiment is decided. autopilot ends it as soon as a result is outside the margin of error, shipping the arm that won or keeping control if it lost. If its window passes with no clear result, autopilot keeps control. require_approval leaves every arm serving for the owner to end. Send null to leave it to the owner. Not accepted on feature flags. Omit to leave unchanged.
autopilot, require_approval "autopilot"
Omit to leave unchanged. Send an empty string to clear it. Not accepted on feature flags. When setting it, structure it as "If we [change] for [cohort], then [measurable behavior] will [increase/decrease], resulting in [business outcome], because [evidence]. Created by [name]." same as on create.
"If we show before and after detailing photos to Austin drivers, then ceramic coating bookings will increase. Customers can see the finish before choosing a package. Created by Marcus Webb."
Resource owned by the account that this experiment is bound to, such as an app or product. null when unbound. Fixed once the experiment first activates.
Response
metrics added
Resource owned by the account that this experiment is bound to, such as an app or product. null when unbound. Fixed once the experiment first activates.
How the experiment is decided. autopilot ends it as soon as a result is outside the margin of error, shipping the arm that won or keeping control if it lost. If its window passes with no clear result, autopilot keeps control. require_approval leaves every arm serving for the owner to end. null leaves it to the owner.
autopilot, require_approval "autopilot"
The treatment that won, set when the experiment was ended. Once set, every evaluation returns this arm to every caller regardless of targeting or allocation, and no further exposures are recorded. null means control won — an ended experiment with no winning arm evaluates to control for everyone. Always null for feature flags, which simply evaluate to disabled once ended.
"treatment"

