Update feature flag metadata
update_flagEdit a flag's metadata—name, description, tags, or client-side visibility—without changing its key, type, or targeting. Pass ifMatch to prevent overwriting concurrent changes.
Instructions
Update flag name/description/tags/clientSideVisible. Changes only the fields you pass and keeps the rest; pass description: "" to clear it. Key and type are immutable. Use toggle_flag / update_targeting for behavior changes. Pass ifMatch (the etag from get_flag) to refuse the write if the flag changed since you read it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flag | Yes | Flag key or id | |
| name | No | New display name | |
| tags | No | Replaces the whole tag list | |
| ifMatch | No | etag from get_flag. The write is refused with 412 if the resource changed since that read; re-read and re-apply. Omit to write unconditionally. | |
| project | Yes | Project key | |
| description | No | New description; "" clears it | |
| clientSideVisible | No | Expose to client-side SDKs (browser/mobile); false hides the flag from them entirely |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| etag | No | ETag of what this write left behind. Pass it as ifMatch on the next update to chain writes without re-reading. Absent when the API sent none; read the resource again before the next conditional write. | |
| flag | Yes | ||
| project | Yes | ||
| updated | Yes |