Skip to content

docs: add guide for experimental flag update endpoints#7083

Open
gagantrivedi wants to merge 4 commits intomainfrom
docs/update-flag-endpoints
Open

docs: add guide for experimental flag update endpoints#7083
gagantrivedi wants to merge 4 commits intomainfrom
docs/update-flag-endpoints

Conversation

@gagantrivedi
Copy link
Copy Markdown
Member

Summary

  • Adds a new documentation page covering the experimental endpoints for updating feature flags via the Admin API (update-flag-v1, update-flag-v2, delete-segment-override)
  • Presents both endpoint options (Option A: one change per request, Option B: everything in one request) side by side across multiple scenarios, so users can compare and give feedback on which approach they prefer
  • Scenarios covered: toggling a flag, updating a feature value, rolling out to a segment, configuring multiple segment overrides, removing a segment override

Closes #6856

Test plan

  • Docusaurus build passes with no broken links
  • All curl examples verified against serializer code and unit tests
  • URL paths verified against api/api/urls/experiments.py
  • Visual review of rendered page on Vercel preview

@gagantrivedi gagantrivedi requested a review from a team as a code owner March 31, 2026 11:16
Copy link
Copy Markdown

@claude claude bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Code review skipped — your organization's overage spend limit has been reached.

Code review is billed via overage credits. To resume reviews, an organization admin can raise the monthly limit at claude.ai/admin-settings/claude-code.

Once credits are available, reopen this pull request to trigger a review.

@gagantrivedi gagantrivedi requested review from Holmus and removed request for a team March 31, 2026 11:16
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 31, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment Apr 2, 2026 2:22am
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
flagsmith-frontend-preview Ignored Ignored Preview Apr 2, 2026 2:22am
flagsmith-frontend-staging Ignored Ignored Preview Apr 2, 2026 2:22am

Request Review

Copy link
Copy Markdown
Contributor

@emyller emyller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall. One blocking note.


These experimental endpoints let you update feature flag values and segment overrides via the Admin API. They're
purpose-built for automation and CI/CD — minimal payloads, no need to look up internal IDs, and they work the same
regardless of whether your environment uses v1 or v2 feature versioning.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(...) and they work the same regardless of whether your environment uses v1 or v2 feature versioning.

I think this piece would only make sense in user documentation if it also educates users about what v1 and v2 feature versioning systems are beforehand — it's not a topic in documentation. Otherwise it might be deixis to delete.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated — now refers to "Feature Versioning" being enabled or not, without the v1/v2 terminology.

Comment on lines +2 to +3
title: Updating Flags
sidebar_label: Updating Flags
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
title: Updating Flags
sidebar_label: Updating Flags
title: Updating Flags (Experimental)
sidebar_label: Updating Flags (Experimental)

The title currently looks like the go-to place for learning how to update flags. Would it improve to make it explicitly experimental?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done — added (Experimental) to both title and sidebar label.


## Remove a segment override

Removes a segment override from a feature.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The doc says "We're evaluating two approaches for updating flags", so this endpoint was a surprise. 😅

Suggested change
Removes a segment override from a feature.
Neither Option A nor B support deleting segment overrides. This separate endpoint uses a similar interface to achieve that:

P.S. Should this be a DELETE call to either endpoints?

Copy link
Copy Markdown
Member Author

@gagantrivedi gagantrivedi Apr 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P.S. Should this be a DELETE call to either endpoints?

This is outside the scope of this documentation

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the intro line to clarify this is a separate endpoint, not part of the Option A/B comparison.

Address review comment — avoid unexplained v1/v2 terminology.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Write documentation on updating a flag using new endpoints

3 participants