provider feature_flags POST /api/projects/{project_id}/feature_flags/{id}/dashboard/
@utdk/posthog /api/projects/{project_id}/feature_flags/{id}/dashboard/
feature_flags_dashboard_create
Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags. If you're looking to use feature flags on your application, you can either use our JavaScript Library or our dedicated endpoint to check if feature flags are enabled for a given user.
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
featureFlagsDashboardCreate
POST/api/projects/{project_id}/feature_flags/{id}/dashboard/
Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags. If you're looking to use feature flags on your application, you can either use our JavaScript Library or our dedicated endpoint to check if feature flags are enabled for a given user.

Parameters

required

A unique integer value identifying this feature flag.

required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

Input

required

contains the description for the flag (field name `name` is kept for backwards-compatibility)

required

Whether the flag is archived. Archived flags are hidden from the flag list by default and must be disabled (`active: false`).

required
required
required
required
required
required
required
required
required
required

The effective access level the user has for this object

Indicates the origin product of the feature flag. Choices: 'feature_flags', 'experiments', 'surveys', 'early_access_features', 'web_experiments', 'product_tours'. * `feature_flags` - feature_flags * `experiments` - experiments * `surveys` - surveys * `early_access_features` - early_access_features * `web_experiments` - web_experiments * `product_tours` - product_tours

required

Specifies where this feature flag should be evaluated * `server` - Server * `client` - Client * `all` - All

Identifier used for bucketing users into rollout and variants * `distinct_id` - User ID (default) * `device_id` - Device ID

Last time this feature flag was called (from $feature_flag_called events)

required

Check if this feature flag is used in any team's session recording linked flag setting.

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import posthog from '@utdk/posthog';

await posthog.featureFlagsDashboardCreate({
  "version": 0,
  "_should_create_usage_dashboard": true
})