---
title: "Turn a flag on or off, or change its targeting"
method: PATCH
path: "/api/v1/flags/{key}"
tags: ["Management"]
---

# Turn a flag on or off, or change its targeting

`PATCH /api/v1/flags/{key}`

## Request

- Base URL: `https://launchflag.dev`
- URL: `https://launchflag.dev/api/v1/flags/{key}`
- Auth: HTTP bearer

## Response `200`

The updated flag

## Other responses

- `401`: A JSON error with a message that says how to fix it

---

[API](https://skmtc.dev/launchflag/apis/launchflag-api.md) · [All operations](https://skmtc.dev/launchflag/apis/launchflag-api/llms.txt) · [OpenAPI document](https://skmtc.dev/launchflag/apis/launchflag-api/revisions/e1b50c6effea?raw)
