provider experiments POST
/api/projects/{project_id}/experiments/{id}/reset/ @utdk/posthog
/api/projects/{project_id}/experiments/{id}/reset/ experiments_reset_create
Reset an experiment back to draft state.
Clears start/end dates, conclusion, and archived flag. The feature
flag is left unchanged — users continue to see their assigned variants.
Previously collected events still exist but won't be included in
results unless the start date is manually adjusted after re-launch.
Returns 400 if the experiment is already in draft state.
- id path required
- A unique integer value identifying this experiment.
- integer
- project_id path required
- Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
- string
Try it
Authentication
Configure credentials for PostHog API
Code snippet
Updates live as you fill in the form above.
TypeScript
import posthog from '@utdk/posthog';
await posthog.experimentsResetCreate()