provider feature_flags POST
/api/projects/{project_id}/feature_flags/{id}/test_evaluation/ @utdk/posthog
/api/projects/{project_id}/feature_flags/{id}/test_evaluation/ feature_flags_test_evaluation_create
Test feature flag evaluation against a specific user at an optional point in time.
This endpoint allows testing how a feature flag would evaluate for a specific user,
optionally at a historical timestamp. When a timestamp is provided, both the flag
conditions and person properties are evaluated as they existed at that time.
- id path required
- A unique integer value identifying this feature flag.
- 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.featureFlagsTestEvaluationCreate()