Menu
Platform
AI
App store purchases
Database
Flags
Jobs and cron
Localization
Monitoring
Notifications
Payments
Queues
Sandboxes
Webhooks
Getting Started
Authentication
KV Store
Deploy & Infrastructure
Reference
Config segments
A ConfigSegment is a reusable audience of an environment: subjects listed by id, and conditions over the evaluation context.
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 | Gets a config segment. |
GET | list | Lists config segments in an environment. |
POST | create | Creates a config segment. |
PATCH | update | Updates a config segment; every flag naming it follows. |
DELETE | 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
#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
#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
#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
#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