# The engine's settings (owner only): every key of the settings file with its value, default, whether it applies at once or after a restart; secrets are never sent.

`POST /datanotes/settings/` (operation `engine_settings`)

`settings_version` changes with every applied change and every start: send it as `expect_version` to `/settings/update/`. A named token is refused (403), even with `maintain`.

## Request body

`application/json`

Type: `object`

## Responses

| Status | Description | Body |
| --- | --- | --- |
| 200 | Done. | `object` (application/json) |
| 400 | Bad input: the body is not a JSON object, or an argument is unknown, missing or of the wrong type. | `Error` (application/json) |
| 401 | Missing or wrong bearer token. | `Error` (application/json) |
| 403 | A named token beyond its permissions (the engine's administration, tables outside its `write` patterns, schema changes without `ddl`). | `Error` (application/json) |
| 500 | Unexpected error. | `Error` (application/json) |

The schemas named here are in [openapi.json](https://datanotes.dev/openapi.json) (`components.schemas`).
