---
title: "Upsert Feature Flag"
method: PUT
path: "/api/v1/internal/organizations/{org_id}/feature-flags"
tags: ["internal_admin"]
---

# Upsert Feature Flag

`PUT /api/v1/internal/organizations/{org_id}/feature-flags`

## Request

- Base URL: `https://api.komos.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.komos.ai/api/v1/internal/organizations/{org_id}/feature-flags`
- Auth: none declared

## Path parameters

- `org_id` string, required

## Headers

- `Authorization` string, nullable
- `X-Org-Id` string, nullable

## Request body

- UpsertFeatureFlagRequest
  - `user_id` string, nullable
  - `task_id` string, nullable
  - `feature` string, required
  - `enabled` boolean

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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