/** * @example * { * id: "id", * findings: "Treatment lifted signups 12%, shipping it to everyone." * } */ export interface EndExperimentsRequest { /** The experiment identifier — the `expt_` id or the flag_key handle. */ id: string; /** Owning account ID. Required when id is a flag key; optional for an expt_ ID. */ account_id?: string; /** What you learned and why you chose this outcome. Required. */ findings: string; /** 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. */ winning_arm?: string | null; }