Skip to navigation

Save config changes

Applies a patch of dotted keys to config.toml and returns the new config state. Comments and key order in the file survive. Send the etag from the last GET /api/config; if the file changed since, the save is refused with the current etag. The save is also refused if it would add a problem the file did not already have. pdf.ocr_command cannot be set, changed or removed from the dashboard.

Request

This endpoint expects an object.
etagstringRequired

The etag from the last GET /api/config.

setmap from strings to strings or doubles or integers or booleans or lists of any or maps from strings to anyOptional

Dotted keys (hook.threshold) to values. A null value removes the key, the same as listing it in unset.

unsetlist of stringsOptional
Dotted keys to remove, so their defaults apply again.

Response

Saved. The body is the new config state, as GET /api/config returns it.

pathstring

The path of config.toml.

existsboolean
etagstring

sha256 of the file’s bytes as hex, or "" when there is no file. Send it back on save.

effectivemap from strings to any

The whole config rhebok runs with, every default filled in. Keys that look like secrets are removed. Dotted paths into this object are the keys of a save’s set.

surface_weightsobject

The ranking weights the hook and MCP each use after per-surface overrides.

filemap from strings to any or null

Only what config.toml itself sets. {} when there is no file, null when it does not parse.

defaultsmap from strings to any

The config with nothing set, in the same shape as effective.

errorslist of objects
Every problem in the file as it is now.
secretsobject
Whether each secret is set. The values are never returned.
env_overrideslist of objects
Endpoint settings that come from the process environment, which the dashboard cannot change.
embed_modelslist of objects
endpointobject

Errors

400
Bad Request Error
409
Conflict Error
413
Content Too Large Error
421
Misdirected Request Error
422
Unprocessable Entity Error
500
Internal Server Error