---
title: "Update feature flag"
method: PATCH
path: "/admin/flags/{key}"
tags: ["FeatureFlag"]
---

# Update feature flag

`PATCH /admin/flags/{key}`

## Request

- Base URL: `https://api.testnet.rise.trade`
- URL: `https://api.testnet.rise.trade/admin/flags/{key}`
- Auth: none required
- TypeScript: <https://skmtc.dev/rise/apis/risex-rest-api/docs/admin/flags/:key/patch.ts> (a function with typed inputs; its response is checked against the schema)

Partial update for a feature flag. Set has_<field>=true to include that field in the update; fields without their has_* flag are left untouched.

## Path parameters

- `key` string, required

## Request body

- FeatureFlagAdminServiceUpdateFeatureFlagBody
  - `has_name` boolean: Only fields with their has_* sibling set to true are updated. Avoids proto3 zero-value ambiguity (e.g. distinguishing "set enabled=false" from "don't touch enabled").
  - `name` string
  - `has_description` boolean
  - `description` string
  - `has_enabled` boolean
  - `enabled` boolean
  - `has_default_access` boolean
  - `default_access` string
  - `has_is_internal` boolean
  - `is_internal` boolean
  - `actor` string: Wallet address of the admin performing this action. Required.

## Response `200`

A successful response.

- ApiUpdateFeatureFlagResponse
  - `ok` boolean

## Other responses

- `default`: An unexpected error response.

## Changes

- **2026-11-03** `98eabcd6a6ad`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/rise/apis/risex-rest-api/changes/admin/flags/:key/patch.md)

---

[API](https://skmtc.dev/rise/apis/risex-rest-api.md) - [All operations](https://skmtc.dev/rise/apis/risex-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rise/apis/risex-rest-api/revisions/98eabcd6a6ad?raw)
