End Experiment
Concludes the experiment and records required findings. Pass winning_arm to serve the winning treatment to everyone. Omit it when control won. Ended experiments cannot restart, but may be ended again to correct the winner. Requires experiment:manage on the owning account. Passing winning_arm needs Economic Intelligence on for the owning account, like activating. Ending without one does not.
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.
Headers
A unique key that makes this request safe to retry. See Idempotent requests.
255"d9105228-4a08-46b1-8b91-42fed586d383"
Query Parameters
Body
The treatment that won. Setting it rolls that arm out: every later evaluation returns it to every caller, ignoring targeting and allocation, and exposures stop being recorded. Omit it when control won — an ended experiment with no winning arm evaluates to control for everyone, so ending again without one also reverts a rollout recorded by mistake. Not accepted on feature flags, which evaluate to disabled once ended.
"treatment"
Response
experiment ended
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"

