v7

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

Change a feature environment safeguard

Enterprise feature

Creates or updates a safeguard for a specific feature and environment.

put/api/admin/projects/{project}/features/{featureName}/environments/{environment}/safeguards

Path parameters

projectstring required
featureNamestring required
environmentstring required

Request body

Example request

{
  "impactMetric": {
    "metricName": "unleash_counter_feature_toggle_usage_total",
    "timeRange": "day",
    "aggregationMode": "rps",
    "labelSelectors": {
      "environment": [
        "development"
      ],
      "project": [
        "default"
      ]
    },
    "source": "internal"
  },
  "triggerCondition": {
    "operator": ">",
    "threshold": 100
  }
}

Response

This response has no body.