Creates a new audience segment with custom targeting rules. Segments are reusable groups of users defined by conditions (e.g., country=‘US’ AND plan=‘premium’) that can be referenced across multiple feature flags for consistent targeting. Each segment contains an array of conditions combined using a logical operator (AND or OR). With AND logic, all conditions must match for a user to be included. With OR logic, any single condition matching includes the user. Segments enable centralized audience management and reduce duplication across flag targeting rules.
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-_]+$