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

# Update a feature flag

`PATCH /v1/admin/feature-flags/{id}`

## Path parameters

- `id` string, required

## Request body

- UpdateFeatureFlagDTO
  - `enabled` boolean — Whether the flag is enabled
  - `percentage` number — Rollout percentage (0-100)
  - `addValue` string — Subscriber ID to add to the flag
  - `removeValue` string — Subscriber ID to remove from the flag

## Response `200`

Feature flag updated

## Other responses

- `404` — Feature flag not found

---

[API](https://skmtc.dev/optechai/apis/lorikeet-api.md) · [All operations](https://skmtc.dev/optechai/apis/lorikeet-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/optechai/lorikeet-api/revisions/3a67275d43b9/schema)
