update_flag_definition
Replace a feature flag's complete definition (treatments, targeting rules) in an environment. Optionally include title and comment for workspaces that require them.
Instructions
Fully replace a feature flag definition (treatments, targeting rules) in an environment. For workspaces where list_workspaces reports requiresTitleAndComments: true, pass title (and comment) or the API rejects the write with a 400.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Change title. Required for workspaces with requiresTitleAndComments: true | |
| comment | No | Change comment. Required for workspaces with requiresTitleAndComments: true | |
| flag_name | Yes | The feature flag name | |
| definition | Yes | Complete updated definition as a JSON string — replaces the existing definition | |
| workspace_id | Yes | The workspace ID | |
| environment_id | Yes | The environment ID or name |