---
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

## Changes

- **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/a66055fa384e/schema)
