---
title: "Update a feature flag"
method: PATCH
path: "/feature-flags/{id}"
tags: ["feature-flags"]
---

# Update a feature flag

`PATCH /feature-flags/{id}`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/feature-flags/{id}`
- Auth: none required

## Path parameters

- `id` integer, required

## Request body

- UpdateFeatureFlag
  - `name` string
  - `description` string
  - `isEnabled` boolean
  - `rolloutPercentage` integer

## Response `200`

Feature flag updated

- FeatureFlag
  - `id` integer, required
  - `key` string, required
  - `name` string, required
  - `description` string, nullable
  - `isEnabled` boolean, required
  - `rolloutPercentage` integer, required
  - `createdAt` string, date-time

## Other responses

- `401`: Unauthorized
- `404`: Not Found

## Changes

- **2026-04-18** `518dcf68679a`: 2 info
  - added the non-success response with the status `401`
  - added the non-success response with the status `404`
- **2026-03-25** `e10ca0cbf01a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api/changes/feature-flags/:id/patch.md)

---

[API](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api.md) - [All operations](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api/llms.txt) - [OpenAPI document](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api/revisions/6ad730b13e59?raw)
