Updates an existing segment’s configuration including name, description, key, logical operator (AND/OR), and targeting conditions. Changes to segment rules or logical operators immediately affect all feature flags that reference this segment, allowing centralized audience management without updating individual flags. Switching between AND/OR logic can significantly change which users match the segment - AND requires all conditions to match while OR requires any single condition to match. Exercise caution when modifying heavily-used segments as changes propagate to all dependent flags. Consider creating a new segment instead of modifying existing ones if the audience definition changes significantly. This endpoint supports partial updates - only provided fields will be modified.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Logical operator to combine multiple rules. 'AND' requires all rules to match, 'OR' requires at least one rule to match.
AND A unique key for the segment within the project.
^[a-zA-Z0-9-_]+$