Flags
Update Flag Config
Creates a new flag version (updates the config) for a specific environment.
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
The flag’s
key.Body
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.Master toggle.
false short-circuits all rules and returns defaultValue.Returned when no rule matches. Must match the flag’s
type.Ordered list of targeting rules. See Flag Config for the full rule
schema. Pass an empty array for a simple on/off flag.
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.