Skip to content
Console
On this page

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

FieldTypeWhat it is
namestringorgs/{org}/projects/{project}/envs/{env}/config_segments/{config_segment}; the id is what IN_SEGMENT names.
uidstringseg_<cell><ulid>. Output only.
metaResourceMetaResource metadata.
specConfigSegmentSpecDesired state. Required.
statusConfigSegmentStatusObserved 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.

MethodCallWhat it does
GETgetGets a config segment.
GETlistLists config segments in an environment.
POSTcreateCreates a config segment.
PATCHupdateUpdates a config segment; every flag naming it follows.
DELETEdeleteDeletes 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