---
title: "Update Settings Batch"
method: PUT
path: "/api/admin/settings/batch"
tags: ["admin"]
---

# Update Settings Batch

`PUT /api/admin/settings/batch`

## Request

- Base URL: `https://api.stellara.natlex.it` (the document declares no server; this is the origin it was published from)
- URL: `https://api.stellara.natlex.it/api/admin/settings/batch`
- Auth: HTTP bearer

Update multiple settings at once.

PR3 audit fix: enforces the same `_is_admin_writable` whitelist as
`update_setting` so the batch path can't write to system-only keys
(e.g. JWT_SECRET if it ever lands in app_settings). Each row also
writes to `admin_audit_log` so the forensic trail is identical to
the single-update path.

## Request body

- SettingUpdate[]
  - `key` string, required
  - `value` string, required

## Response `200`

Successful Response

- AdminSettingsBatchResponse
  - `updated` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/natlex/apis/stellara-api.md) · [All operations](https://skmtc.dev/natlex/apis/stellara-api/llms.txt) · [OpenAPI document](https://skmtc.dev/natlex/apis/stellara-api/revisions/e576f046b61f?raw)
