Flags
POSTCreate a flag
Create a typed feature flag with named variations for a project
POST
/v1/projects/{projectId}/flagsCreate a flag
curl --request POST \
--url 'http://localhost:4000/v1/projects/{projectId}/flags' \
--header 'Authorization: Bearer <token>'200
application/json{}Create a flag
Creates a typed feature flag in the specified project for use in feature gates or remote configuration. Set type to boolean, string, number, or json, and provide at least one named variation; each variation must have a unique key.
Creating a flag also creates a default disabled configuration for every environment in the project. Use the flag key to reference the flag from the SDK, and configure per-environment targeting separately after creation.
Authentication
AuthorizationbearerrequiredServer API key (srv_). See Authentication.
Path Parameters
projectIdstringrequiredProject ID