provider experiments PATCH
/api/projects/{project_id}/experiments/{id}/ @utdk/posthog
/api/projects/{project_id}/experiments/{id}/ experiments_partial_update
Update an experiment. Use this to modify experiment properties such as name, description, metrics, variants, and configuration. Metrics can be added, changed and removed at any time. Feature-flag config (variants, rollout, payloads) is sent via the feature_flag object.
- 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.experimentsPartialUpdate({
"archived": false,
"allow_unknown_events": false,
"update_feature_flag_params": false
})