Create feature flag definition in environment

Configures a feature flag definition for a specific environment.

Access requirements

The Authorization Bearer (Admin API Key authorizing the request) must have one of the following roles and scopes:

Admin API Key roles accepted

  • API_ALL_GRANTED
  • API_FEATURE_FLAG_EDITOR

Admin API Key scopes accepted

  • GLOBAL
  • WORKSPACE
  • ENVIRONMENT

To learn more about Admin API Key roles and scopes, see API keys overview.


JSON Payload

{
  "treatments": [ Treatment ], // Mandatory
  "defaultTreatment": String, // Mandatory
  "rules": [ Rule ], // Optional
  "defaultRule": [ Bucket ], // Mandatory
  "comment": String // Optional
}
Language