---
# @generated by sylphx-gen 0.1.0 from contracts@e145cc7cf1bc9605f2b27439e5e17ed76a1a2fd7e7021906a013f7565e4a0cd5. Do not edit.
title: "Config segments"
description: "The `config_segments` collection of Sylphx Config: A ConfigSegment is a reusable audience of an environment: subjects listed by id, and conditions over the evaluation context."
type: reference
product: flags
summary: "A ConfigSegment is a reusable audience of an environment: subjects listed by id, and conditions over the evaluation context."
updated: 2026-09-28
order: 900
---

A ConfigSegment is a reusable audience of an environment: subjects listed by id, and conditions over the evaluation context. Flag rules refer to it with IN_SEGMENT, so one change to the audience reaches every flag.

**Service** Sylphx Config · **Resource type** `config.sylphx.com/ConfigSegment` · **Name pattern** `orgs/{org}/projects/{project}/envs/{env}/config_segments/{config_segment}` · **Shape** `spec_status`

## Fields

| Field | Type | What it is |
| --- | --- | --- |
| `name` | `string` | `orgs/{org}/projects/{project}/envs/{env}/config_segments/{config_segment}`; the id is what IN_SEGMENT names. |
| `uid` | `string` | `seg_<cell><ulid>`. Output only. |
| `meta` | `ResourceMeta` | Resource metadata. |
| `spec` | `ConfigSegmentSpec` | Desired state. Required. |
| `status` | `ConfigSegmentStatus` | Observed state. Output only. |

## Methods

Every method of the collection, in the registry's order, with the scope it
needs. The full request, response and examples are one link away.

| Method | Call | What it does |
| --- | --- | --- |
| `GET` | [`get`](/docs/api/config_segments#get) | Gets a config segment. |
| `GET` | [`list`](/docs/api/config_segments#list) | Lists config segments in an environment. |
| `POST` | [`create`](/docs/api/config_segments#create) | Creates a config segment. |
| `PATCH` | [`update`](/docs/api/config_segments#update) | Updates a config segment; every flag naming it follows. |
| `DELETE` | [`delete`](/docs/api/config_segments#delete) | Deletes a config segment; refused while a flag names it. |

## get

Gets a config segment.

`GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/config_segments/config-segment` · scope `config:read` · effect `read` · [Request, response and examples](/docs/api/config_segments/get)

## list

Lists config segments in an environment.

`GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/config_segments` · scope `config:read` · effect `read` · paginated · [Request, response and examples](/docs/api/config_segments/list)

## create

Creates a config segment.

`POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/config_segments` · scope `config:write` · effect `write` · long-running · [Request, response and examples](/docs/api/config_segments/create)

## update

Updates a config segment; every flag naming it follows.

`PATCH https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/config_segments/config-segment` · scope `config:write` · effect `write` · long-running · [Request, response and examples](/docs/api/config_segments/update)

## delete

Deletes a config segment; refused while a flag names it.

`DELETE https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/config_segments/config-segment` · scope `config:write` · effect `destructive` · long-running · [Request, response and examples](/docs/api/config_segments/delete)
