No results for ""
EXPAND ALL
  • Home
  • API docs

Converting rules into segments

Read time: 1 minute
Last edited: Oct 30, 2024

Overview

This topic explains how convert targeting rules into reusable segments.

Convert rules into segments

You may require complex targeting rules to successfully perform feature launches. You can convert a targeting rule into a reusable standard segment from the flag's targeting page.

To convert a rule into a segment:

  1. In the flags dashboard, scroll or search to find the flag you want.
  2. Click the flag's name to open the flag targeting page.
  3. Find the custom targeting rule you want to convert and click the overflow menu. The overflow menu appears.
  4. Click Convert to segment. The "Convert targeting rule to segment" dialog appears.
  5. Give your segment a human-readable Name and a Key.
  6. (Optional) Add a Description.
  7. (Optional) Select a tag or create a new tag from the Tags menu.
  8. Click Save segment. A confirmation appears indicating that you've created a new segment.

A new rule targeting the newly created segment appears in the list of targeting rules.