Create a new targeting rule for a flag in an environment.
Access: Org Admins or Editors only.
Rule types:
segment: Matches users in a specific segment (requires segment_id)custom: Matches users based on custom conditions (requires conditions array)Important:
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Type of rule: segment-based or custom conditions
segment Human-readable name for the rule
Required when kind="custom". Array of conditions (AND semantics)
ID of flag_variations row when this rule matches.
ID of flag_rollouts row to use when this rule matches.
Order in which rules are evaluated (lower = higher priority). Defaults to 0