---
title: "Сохранение настройки"
method: POST
path: "/settings"
tags: ["Настройки"]
---

# Сохранение настройки

`POST /settings`

Сохраняет значение настройки панели управления. Метод доступен root-токенам.

## Headers

- `Idempotency-Key` string, uuid

## Request body

- object
  - `key` string, required — Ключ настройки.
  - `value` string, required — Новое значение настройки.

## Response `200`

Форматированное значение обновленной настройки.

- object

## Other responses

- `400` — Неправильный запрос.
- `401` — Пользователь не авторизован или токен не передан.
- `403` — Доступ запрещен.
- `500` — Внутренняя ошибка сервера.

## Changes

- **2026-05-06** `1fcb9532ff2f` — 2 breaking
  - added `#/components/schemas/Setting, subschema #2` to the `additionalProperties/` response property `oneOf` list for the response status `200`
  - the `additionalProperties/` response's property type/format changed from `string`/`` to ``/`` for status `200`

[Change history](https://skmtc.dev/smartofood/apis/smartofood-control-api/changes/settings/post.md)

---

[API](https://skmtc.dev/smartofood/apis/smartofood-control-api.md) · [All operations](https://skmtc.dev/smartofood/apis/smartofood-control-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/smartofood/smartofood-control-api/revisions/50489dff6853/schema)
