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

# Update a feature flag

`PATCH /v3/feature-flags/{id}`

> **Deprecated.**

Updates the specified feature flag by setting the values of the parameters passed. Any parameters not provided will be left unchanged.

## Path parameters

- `id` string, required

## Request body

- FeatureFlagUpdateRequestModel
  - `name` string, nullable — Name of the feature flag. Letters (a-z, A-Z), numbers, underscores and hyphens.
  - `description` string, nullable — Description for the feature flag. Any printable characters and line breaks. Cannot contain control characters other than tab, carriage return and line feed, nor invisible formatting characters (zero-width and bidirectional marks), and cannot start or end with whitespace.

## Response `200`

OK

- FeatureFlagDto
  - `id` string, required
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required
  - `name` string, required
  - `description` string, required
  - `productId` string, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `429` — Too Many Requests
- `500` — Server Error

## Changes

- **2026-08-18** `66dcb6293180` — 1 breaking
  - added the pattern `^(?!\s)(?![\s\S]*\s$)(?:[^\p{Cc}\p{Cf}\p{Zl}\p{Zp}]|[\t\n\r])+$` to the request property `description`

[Change history](https://skmtc.dev/cryptlex/apis/cryptlex-web-api/changes/v3/feature-flags/:id/patch.md)

---

[API](https://skmtc.dev/cryptlex/apis/cryptlex-web-api.md) · [All operations](https://skmtc.dev/cryptlex/apis/cryptlex-web-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cryptlex/cryptlex-web-api/revisions/66dcb6293180/schema)
