Create feature flag

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

Path Params
string
required

The ID of the project (workspace) where you want to create the feature flag. After migration to Harness, get this value using the Get Projects (Workspaces) endpoint and the Harness project name.

string
required

The ID or case-sensitive name of the traffic type used to create the feature flag.

Form Data
json

JSON object that contains the name and (optionally) the description and owners of the feature flag.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Request
Response
Choose an example:
application/json
text/plain