Skip to main content

Common fields shared by all feature rule types. Specific rule types extend this base with their own required properties (value, coverage, etc.).

description
string
required
Maximum string length: 10000
id
string
required
enabled
boolean
required
type
string
required
Allowed value: "force"
value
string
required
allEnvironments
boolean
required

When true the rule applies to all environments. When false only the environments listed in environments receive the rule.

condition
string
scheduleRules
object[]

Simple time-based on/off schedule for this rule

scheduleType
enum<string>

UI hint for which scheduling mode is active:

  • none – no schedule
  • schedule – simple time-based enable/disable via scheduleRules
  • ramp – multi-step ramp-up controlled by an associated RampSchedule document
Available options:
none,
schedule,
ramp
rampScheduleId
string

ID of the active RampSchedule document controlling this rule. Present when scheduleType is ramp and a live schedule exists.

savedGroupTargeting
object[]
prerequisites
object[]
allProjects
boolean

When true (the default) the rule applies to every project the feature is delivered to. When false the rule is limited to projects.

projects
string[]

Project IDs this rule is scoped to when allProjects is false. An empty array scopes the rule to no project.

sparse
boolean

JSON features only. When true, value is a partial object merged onto the feature's default value instead of replacing it.

config
string | null

Key of the config backing this value, or null when the value is not config-backed. The config supplies the base JSON (and its schema); the value is an override patch merged on top.

environments
string[]

The environment IDs this rule is active in. Populated when allEnvironments is false.

pendingRamp
enum<string>

Present on draft revisions only. "create" means a ramp schedule will be created for this rule on publish. "detach" means an existing live ramp schedule will be removed on publish. Use PUT/DELETE .../rules/{ruleId}/ramp-schedule to modify.

Available options:
create,
detach