Skip to main content
PUT
This endpoint appends a new version — it never mutates existing rows. The new version becomes the active config immediately and the edge cache is updated. If the environment is protected, this endpoint returns 403. Use Create Proposal instead.

Path parameters

string
required
string
required
string
required
The flag’s key.

Body

number
required
Must equal the current latest version plus one. If the flag has no existing version in this environment, send 1. If the value does not match, the server returns 409 VERSION_CONFLICT — fetch the latest version and retry.
boolean
required
Master toggle. false short-circuits all rules and returns defaultValue.
boolean | string | number
required
Returned when no rule matches. Must match the flag’s type.
Rule[]
required
Ordered list of targeting rules. See Flag Config for the full rule schema. Pass an empty array for a simple on/off flag.
Variant[]
Named value definitions for string or number flags.
Using regex or geo_country operators, or setting rolloutPercentage on a rule, requires a Pro or Enterprise plan.