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
projectId
environment
Request
createFeatureStrategySchema
name
The name of the strategy type
title
A descriptive title for the strategy
disabled
A toggle to disable the strategy. defaults to false. Disabled strategies are not evaluated or returned to the SDKs
sortOrder
The order of the strategy in the list
constraints
A list of the constraints attached to the strategy. See https://docs.getunleash.io/concepts/activation-strategies#constraints
variants
Strategy level variants
parameters
An object containing the parameters for the strategy
segments
Ids of segments to use for this strategy
Response
createFeatureStrategySchema
name
The name of the strategy type
title
A descriptive title for the strategy
disabled
A toggle to disable the strategy. defaults to false. Disabled strategies are not evaluated or returned to the SDKs
sortOrder
The order of the strategy in the list
constraints
A list of the constraints attached to the strategy. See https://docs.getunleash.io/concepts/activation-strategies#constraints
variants
Strategy level variants
parameters
An object containing the parameters for the strategy
segments
Ids of segments to use for this strategy