---
title: "Update Config"
method: POST
path: "/config"
---

# Update Config

`POST /config`

Update mutable config fields at runtime.

Accepts JSON body with ``{"max_agents": N}``.  Writes the change to
``bernstein.yaml`` so the orchestrator's hot-reload picks it up on
the next tick (~30s).  Returns the new effective value.

Agent identity JWTs (per-agent, task-scoped) are rejected with 403 -
mutating process-wide config is an operator action.  SSO admin users
and legacy operator tokens may proceed.  Bearer-level permission
enforcement is handled by :class:`SSOAuthMiddleware` via the
``admin:manage`` mapping; this check adds defense-in-depth against any
agent JWT that slips through the middleware's prefix match.

## Response `200`

Successful Response

- unknown

---

[API](https://skmtc.net/sipyourdrink-ltd/apis/bernstein-task-server.md) · [All operations](https://skmtc.net/sipyourdrink-ltd/apis/bernstein-task-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sipyourdrink-ltd/bernstein-task-server/versions/86f514b4e920/schema)
