---
title: "Set a single setting value"
method: POST
path: "/api/settings/{id}"
tags: ["settings"]
---

# Set a single setting value

`POST /api/settings/{id}`

Sets the value of a single setting, identified by key.

## Path parameters

- `id` string, required

## Headers

- `Comfy-User` string

## Request body

- unknown

## Response `200`

Setting updated

## Other responses

- `400` — Invalid request
- `401` — Unauthorized

## Changes

- **2026-05-22** `09a5075587c8` — 3 info
  - api operation id `updateSetting` removed and replaced with `updateSettingById`
  - added the non-success response with the status `400`
  - added the non-success response with the status `401`
- **2026-04-24** `a66055fa384e` — 2 breaking, 4 info
  - removed the media type `text/plain` from the request body
  - removed the media type `application/json` for the response with the status `200`
  - api operation id `updateSettingById` removed and replaced with `updateSetting`
  - added the new optional `header` request parameter `Comfy-User`
  - …2 more

[Change history](https://skmtc.dev/comfy-org/apis/comfyui-api/changes/api/settings/:id/post.md)

---

[API](https://skmtc.dev/comfy-org/apis/comfyui-api.md) · [All operations](https://skmtc.dev/comfy-org/apis/comfyui-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/comfy-org/comfyui-api/revisions/09a5075587c8/schema)
