---
title: "Update option by key"
method: PUT
path: "/api/option/{key}"
tags: ["option"]
---

# Update option by key

`PUT /api/option/{key}`

Updates a single option by key

## Path parameters

- `key` string, required

## Request body

- string

## Response `200`

OK

- MiddlewareAPIResponse
  - `data` unknown
  - `message` string
  - `success` boolean

## Changes

- **2025-05-23** `eb3d08e71881` — 1 info
  - endpoint added
- **2025-05-23** `544096a3f194` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/labring/apis/ai-proxy-swagger-api/changes/api/option/:key/put.md)

---

[API](https://skmtc.dev/labring/apis/ai-proxy-swagger-api.md) · [All operations](https://skmtc.dev/labring/apis/ai-proxy-swagger-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/labring/ai-proxy-swagger-api/revisions/fb33182ee5b6/schema)
