Set environment-default strategy

Sets a default strategy for this environment. Unleash will use this strategy by default when enabling a feature flag. Use the wild card ”*” for :environment to add to all environments.

Authentication

Authorizationstring
API key needed to access this API
OR
AuthorizationBearer
API key needed to access this API, in Bearer token format

Path parameters

projectIdstringRequired
environmentstringRequired

Request

createFeatureStrategySchema
namestringRequired
The name of the strategy type
titlestring or nullOptional
A descriptive title for the strategy
disabledboolean or nullOptional
A toggle to disable the strategy. defaults to false. Disabled strategies are not evaluated or returned to the SDKs
sortOrderdoubleOptional
The order of the strategy in the list
constraintslist of objectsOptional

A list of the constraints attached to the strategy. See https://docs.getunleash.io/concepts/activation-strategies#constraints

variantslist of objectsOptional
Strategy level variants
parametersmap from strings to stringsOptional
An object containing the parameters for the strategy
segmentslist of doublesOptional
Ids of segments to use for this strategy

Response

createFeatureStrategySchema
namestring
The name of the strategy type
titlestring or null
A descriptive title for the strategy
disabledboolean or null
A toggle to disable the strategy. defaults to false. Disabled strategies are not evaluated or returned to the SDKs
sortOrderdouble or null
The order of the strategy in the list
constraintslist of objects or null

A list of the constraints attached to the strategy. See https://docs.getunleash.io/concepts/activation-strategies#constraints

variantslist of objects or null
Strategy level variants
parametersmap from strings to strings or null
An object containing the parameters for the strategy
segmentslist of doubles or null
Ids of segments to use for this strategy

Errors