Skip to content

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/
curl --request POST \
--url https://example.com/datanotes/settings/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'

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.

Media typeapplication/json
object

Example generated

{}

Done.

Media typeapplication/json
object
settings_file
required

The settings file; null on a host that keeps its settings in memory.

string | null
settings_version
required

Opaque: changes with every applied change and every start.

string
file_changed_on_disk
required

The file was edited by hand since the engine read or wrote it: changes are refused until a restart.

boolean
restart_pending
required

The settings saved but waiting for a restart, in settings order.

Array<string>
settings
required

Every key of the settings file, in its order.

Array<object>

One key of the engine’s settings file, with its rule. Secrets are never sent: the owner token has no value, header values and the credentials inside an address are hidden.

object
name
required

The settings file’s key (camelCase).

string
type
required

The kind of value it takes.

string
Allowed values: boolean integer number string enum string_list string_map
value

The value saved now. Absent when write_only; telemetryHeaders shows each header’s value as <redacted>; an address shows no user or password.

default_value

The value when the file does not set it. Absent for httpServerToken.

changed
required

The value differs from the default (httpServerToken: it is set).

boolean
expected
required

The allowed values in words, read after “ takes “.

string
values

The allowed values of an enum.

Array<string>
minimum

The smallest value of an integer or number, when it has one.

number
maximum

The largest value of an integer or number, when it has one.

number
applies
required

live: a change applies from the next request or background job; restart: at the engine’s next start.

string
Allowed values: live restart
editable
required

False for the settings that change only in the settings file (tableKey, transactionLogFormat).

boolean
change_with

When not editable: why, and how to change it.

string
restart_pending
required

A restart setting whose saved value is not the one the engine runs with.

boolean
overridden_by

A start option of datanotes serve that wins over the setting, in words.

string
write_only

Its value is never sent (httpServerToken).

boolean
redacted

Something was hidden: header values, the credentials of an address, the token.

boolean
sends_data

An address the engine sends data to.

boolean
warning

What a change of it does, to show before it is saved.

string

Example

{
"settings": [
{
"type": "boolean",
"applies": "live",
"write_only": true,
"redacted": true,
"sends_data": true
}
]
}

Bad input: the body is not a JSON object, or an argument is unknown, missing or of the wrong type.

Media typeapplication/json
object
error
required

What went wrong, for a person or an agent.

string

Example generated

{
"error": "example"
}

Missing or wrong bearer token.

Media typeapplication/json
object
error
required

What went wrong, for a person or an agent.

string

Example generated

{
"error": "example"
}

A named token beyond its permissions (the engine’s administration, tables outside its write patterns, schema changes without ddl).

Media typeapplication/json
object
error
required

What went wrong, for a person or an agent.

string

Example generated

{
"error": "example"
}

Unexpected error.

Media typeapplication/json
object
error
required

What went wrong, for a person or an agent.

string

Example generated

{
"error": "example"
}