Move a legacy experiment onto the new experiments engine.
Creates a new experiment with the same configuration and its metrics converted to the new format, and returns it. The legacy experiment is left untouched and keeps its results, so the project ends up with two experiments. Both point at the same feature flag, so no new rollout is needed and users keep the variant they already have.
Legacy shared metrics used by the experiment are converted as part of the same call. Each one gets a new shared metric, and the new experiment links to that.
Calling this again returns the experiment created the first time instead of making another copy.
Returns 400 if the experiment already uses the new engine.
Request
- Base URL: https://us.posthog.com
- URL: https://us.posthog.com/api/projects/{project_id}/experiments/{id}/migrate/
- 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.