Full Configuration Management via Admin API
The Admin API now supports reading and replacing the entire configuration through GET and POST /v1/admin/config, with both JSON and TOML format support.
Read the current config:
# As JSON
curl -H "Authorization: Bearer " \
http://localhost:3000/v1/admin/config
# As TOML
curl -H "Authorization: Bearer " \
"http://localhost:3000/v1/admin/config?format=toml"Replace the entire config:
curl -X POST \
-H "Authorization: Bearer " \
-H "Content-Type: application/json" \
-d @config.json \
http://localhost:3000/v1/admin/configThe config is validated before being written, and on reload failure the previous configuration is automatically restored (safe to use in production).