---
title: "Update Feature Flag"
method: PUT
path: "/api/admin/feature-flags/{key}"
tags: ["admin"]
---

# Update Feature Flag

`PUT /api/admin/feature-flags/{key}`

## Request

- Base URL: `https://api.stellara.natlex.it` (the document declares no server; this is the origin it was published from)
- URL: `https://api.stellara.natlex.it/api/admin/feature-flags/{key}`
- Auth: HTTP bearer

Toggle a feature flag on/off. Key must start with ``feature_``.

## Path parameters

- `key` string, required

## Request body

- FeatureFlagUpdate
  - `enabled` boolean, required

## Response `200`

Successful Response

- FeatureFlagItem
  - `key` string, required
  - `feature` string, required
  - `enabled` boolean, required
  - `updated_at` unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/natlex/apis/stellara-api.md) · [All operations](https://skmtc.dev/natlex/apis/stellara-api/llms.txt) · [OpenAPI document](https://skmtc.dev/natlex/apis/stellara-api/revisions/e576f046b61f?raw)
