Update targeting rule
Flag Targeting Rules
Update targeting rule
Update an existing targeting rule.
Access: Org Admins or Editors only.
Note: Partial updates are supported. Only provide fields you want to change.
Important:
- When changing kind from ‘segment’ to ‘custom’, you must provide conditions
- When changing kind from ‘custom’ to ‘segment’, you must provide segment_id
PUT
Update targeting rule
Documentation Index
Fetch the complete documentation index at: https://docs.flagmint.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
application/json
Human-readable name for the rule
Type of rule: segment-based or custom conditions
Available options:
segment 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