v7

latestOpenAPI 3.0.3raw.githubusercontent.com2026-08-013764062.2 MB
Features

Change specific properties of a strategy

Change specific properties of a strategy configuration in a feature flag.

patch/api/admin/projects/{projectId}/features/{featureName}/environments/{environment}/strategies/{strategyId}

Path parameters

projectIdstring required
featureNamestring required
environmentstring required
strategyIdstring required

Request body

pathstring required

The path to the property to operate on

op'add' | 'remove' | 'replace' | 'copy' | 'move' | 'test' required

The kind of operation to perform

fromstring

The target to move or copy from, if performing one of those operations

valuestring

The value to add or replace, if performing one of those operations

Example request

[
  {
    "path": "/type",
    "op": "replace",
    "from": "/type",
    "value": "kill-switch"
  }
]

Response

featureStrategySchema

idstring

A uuid for the feature strategy

namestring required

The name or type of strategy

titlestring nullable

A descriptive title for the strategy

disabledboolean nullable

A toggle to disable the strategy. defaults to false. Disabled strategies are not evaluated or returned to the SDKs

featureNamestring

The name or feature the strategy is attached to

sortOrdernumber

The order of the strategy in the list

segmentsnumber[]

A list of segment ids attached to the strategy

parametersParametersSchema

A list of parameters for a strategy

Example response

{
  "id": "6b5157cb-343a-41e7-bfa3-7b4ec3044840",
  "name": "flexibleRollout",
  "title": "Gradual Rollout 25-Prod",
  "featureName": "myAwesomeFeature",
  "sortOrder": 9999,
  "segments": [
    1,
    2
  ],
  "constraints": [
    {
      "contextName": "appName",
      "operator": "IN",
      "values": [
        "my-app",
        "my-other-app"
      ],
      "value": "my-app"
    }
  ],
  "variants": [
    {
      "name": "blue_group",
      "weightType": "fix",
      "stickiness": "custom.context.field",
      "payload": {
        "type": "json",
        "value": "{\"color\": \"red\"}"
      }
    }
  ]
}