Freeze exposure on a running experiment while metrics keep flowing.
Snapshots the already-exposed users into a static cohort and narrows the linked feature flag so only those users keep matching — new users can no longer enter the experiment. end_date is left null so long-term metrics (revenue/LTV/renewals/retention) keep accumulating. Enrolled users keep their assigned variant. The serialized status becomes 'exposure_frozen'.
Returns 400 if the experiment is not running, exposure is already frozen, the experiment is group-aggregated (group flags cannot be frozen with a person cohort), or the exposed set is too large to snapshot synchronously.
Request
- Base URL: https://us.posthog.com
- URL: https://us.posthog.com/api/projects/{project_id}/experiments/{id}/freeze_exposure/
- Auth: HTTP bearer
Path parameters
A unique integer value identifying this experiment.
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Response
Changes
No recorded changes to this operation across all 1 revision of this API.