Create feature flag

Create a feature flag in your account, given a traffic type. This API does not configure the flag in any environment. Provide the feature flag details in the JSON body; path parameters specify the project and traffic type.

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

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


JSON Payload Posted

{
 "name": String, // Mandatory
 "description": String, // Optional
 "owners": [ //Optional
      {
        "id": String,
        "type": String
      }
    ]
}
Language