#8544·flagsmith

Delete unused segment / override endpoints

Author: emyllerCreated Sep 17, 2026Updated Sep 18, 2026

While covering all grounds for feature dependency cycle validation in https://github.com/Flagsmith/flagsmith/issues/8412, some endpoints in our API were found to have no use, and still cost maintenance.

POST /api/v1/features/feature-segments/ is never used in the frontend, in neither of Feature Versioning v1 or v2.

PUT / PATCH /api/v1/features/feature-segments/{id}/ do not represent any real use case: it makes no sense to change the segment or the feature of an override object once it's created.

Acceptance criteria

  • The verb POST on the endpoint /api/v1/features/feature-segments/ no longer exists in the API.
  • The verbs PUT and PATCH on the endpoint /api/v1/features/feature-segments/{id}/ no longer exist in the API.