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

# Update a feature flag

`PATCH /v1/feature-flags/{flag_key}`

Set the enabled state of a single feature flag.

## Path parameters

- `flag_key` string, required

## Request body

- object
  - `enabled` union, required
    - boolean
    - string

## Response `200`

Successful response

- object
  - `key` string, required
  - `enabled` union, required
    - boolean
    - string

---

[API](https://skmtc.net/vellum-ai/apis/vellum-gateway-api.md) · [All operations](https://skmtc.net/vellum-ai/apis/vellum-gateway-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vellum-ai/vellum-gateway-api/versions/0ce2a9dec32d/schema)
