Update a settings namespace
const url = 'https://example.com/api/v1/settings/notification';const options = { method: 'PATCH', headers: {'Content-Type': 'application/json'}, body: '{"egress_allow":["smtp.example.com"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://example.com/api/v1/settings/notification \ --header 'Content-Type: application/json' \ --data '{ "egress_allow": [ "smtp.example.com" ] }'Applies an RFC 7386 JSON Merge Patch to the namespace’s platform binding; null on a key restores it (for example {“egress_allow”:null}). Gated by settings:update and platform:update.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”The settings namespace, e.g. ui
The settings namespace, e.g. ui
Request Bodyrequired
Section titled “ Request Bodyrequired ”An RFC 7386 JSON Merge Patch for the namespace; null on a key restores it
object
Responses
Section titled “ Responses ”OK
object
A URL to the JSON Schema for this object.
Key ‘namespace.key’ to the locking level, when locked
object
Key ‘namespace.key’ to the winning level (default|file|env|platform)
object
object
object
Policy for an agent’s calls that may point a stored credential somewhere (any operation gated on secret:bind)
Policy for an agent’s writes that overwrite or delete (a PATCH, PUT or DELETE)
Policy for an agent’s reads (a GET, or a POST gated on a read permission)
Per-role overrides, keyed by role name: a class set here applies to the agents of anyone granted the role, when it is stricter
object
object
Policy for this role’s agents’ calls that may point a stored credential somewhere
Policy for this role’s agents’ writes that overwrite or delete
Policy for this role’s agents’ reads
Policy for this role’s agents’ writes that create or act
Per-tool overrides, keyed by operation ID (an MCP tool’s name): always, ask or never, applied on top of the tool’s class when stricter
object
Policy for an agent’s writes that create or act (a POST that is not a read)
object
The server’s base URL, /chat/completions appended. An internal server is reached only when the notification settings’ egress_allow names it. Moving it from the console or API while a key_secret is bound takes secret:bind on that secret; the settings file and environment are trusted as deployment config
Days a stored omnibot conversation is kept after it last changed
A platform api-key secret, by name, sent as the bearer on every model call; empty calls without a key (a local server). Setting it from the console or API takes secret:bind on it; the settings file and environment are trusted as deployment config. The key never leaves the server
The model’s name on that server (openai/gpt-4.1-mini on OpenRouter, llama3.1 on Ollama)
The model omnibot runs on: openai (any OpenAI-compatible chat completions server, OpenRouter by default) or none, which leaves the server’s recording, if any
object
Seconds each endpoint’s collection telemetry covers: its polls’ mean duration and failures, and the pushes its listeners claimed or did not, reported once a window
object
Milliseconds a query may run before the server logs it as slow (its statement’s shape and duration, never its values) and counts it; 0 turns the log off
object
Seconds between heartbeats
The webhook notification target the server sends its heartbeat to, by name; empty turns the heartbeat off. The request is signed by the target’s bound hmac-key secret and subject to the egress allow list
object
Close the top blade
Open the command palette
Open the detail blade
Open the edit pane
object
Words a generated label title-cases to a fixed form, whole-word and case-insensitive
object
The console’s base URL as a receiver of a notification reaches it (https://omniglass.example.com); the prefix of the Link a notification’s subject and text read. Empty leaves Link empty
The internal destinations a notification may reach, each a CIDR (10.20.0.0/16), an address, or a host name (chat.corp.example). Everything private, loopback or link-local is refused unless named here; a cloud metadata address is refused even when it is; plain http is admitted only to a destination named here
The From address of an email notification (Omniglass alerts@example.com)
The SMTP relay email notifications go through, host:port (smtp.example.com:587). Empty turns email off. An internal relay is reached only when egress_allow names it
A platform basic-auth secret, by name, the relay session authenticates with; empty sends without authenticating. Setting it from the console or API, or moving mail_relay there while one is set, takes secret:bind on that secret; the settings file and environment are trusted as deployment config
How the session to the relay is protected: starttls (the relay must offer it), tls (implicit TLS, port 465), or none, admitted only for a relay egress_allow names (a lab’s mail sim)
object
Days a debug log line is kept
Days an error, critical, alert or emergency log line is kept
Days an info or notice log line, or one with no severity, is kept
Days a warning log line is kept
Days a metric sample is kept, unless its type keeps its own (a metric type’s retention_days); a sample on the lane’s window leaves with its UTC day, up to a day later; at least 3, the shortest window that folds into blocks
Days an outpost’s own debug log line is kept; unset follows log_debug_days
Days an outpost’s own error, critical, alert or emergency log line is kept; unset follows log_error_days
Days an outpost’s own info or notice log line, or one with no severity, is kept; unset follows log_info_days
Days an outpost’s own warning log line is kept; unset follows log_warning_days
Days a property transition is kept, unless its type keeps its own (a property type’s retention_days)
Days an hourly metric trend is kept (#1276)
object
A platform oauth2-client secret, by name: its client_id field is the client id Omniglass is registered as, its client_secret field authenticates the token exchange. Setting it from the console or API takes secret:bind on it; the settings file and environment are trusted as deployment config
The id_token claim carrying the person’s groups at the provider (read by group mapping, #2363)
The identity provider’s issuer URL exactly as its id_tokens carry it (https://login.example.com/realms/corp). Empty turns single sign-on off. An on-premises provider is reached only when the notification settings’ egress_allow names it. Moving it from the console or API while client_secret is bound takes secret:bind on that secret; the settings file and environment are trusted as deployment config
Minutes a link may go without a refresh the provider accepted (an outage) before its sessions and tokens are refused until one is; also the length of a session through a provider that issues no refresh token
Minutes between re-checks: each link with a live session or token through it redeems its refresh token at the provider, and a refusal revokes them
The scopes a sign-in asks for, space-separated. offline_access asks for the refresh token the re-check redeems; a provider that issues none gives sessions of recheck_grace_minutes and no API tokens
object
Route the console opens to (an absolute path)
Console color theme
Example
{ "$schema": "/api/v1/schemas/SettingsReadOutputBody.json", "values": { "agent": { "credential_destination": "always", "destructive": "always", "read": "always", "roles": { "additionalProperty": { "credential_destination": "always", "destructive": "always", "read": "always", "write": "always" } }, "write": "always" }, "assistant": { "base_url": "https://openrouter.ai/api/v1", "conversation_days": 30, "model": "openai/gpt-4.1-mini", "provider": "none" }, "collection": { "report_seconds": 60 }, "database": { "slow_query_ms": 500 }, "heartbeat": { "interval_seconds": 60 }, "keybindings": { "close_blade": "Escape", "command_palette": "mod+k", "open_detail": "d", "open_edit": "e" }, "label": { "acronyms": [ "AV", "BYOD", "DSP", "EDID", "HDBaseT", "HDCP", "HDMI", "IP", "IR", "KVM", "LAN", "LCD", "LED", "MTR", "NDI", "NVR", "OLED", "PC", "PoE", "PTZ", "RF", "SDI", "SIP", "TV", "UC", "USB", "VC", "VLAN", "4K", "8K" ] }, "notification": { "mail_security": "starttls" }, "retention": { "log_debug_days": 3, "log_error_days": 90, "log_info_days": 14, "log_warning_days": 30, "metric_days": 14, "property_days": 90, "trend_days": 730 }, "sso": { "groups_claim": "groups", "recheck_grace_minutes": 60, "recheck_minutes": 15, "scopes": "openid email profile offline_access" }, "ui": { "default_landing": "/", "theme": "omniglass-dark" } }}default
Section titled “ default ”Error
object
A URL to the JSON Schema for this object.
A human-readable explanation specific to this occurrence of the problem.
Optional list of individual error details
object
Where the error occurred, e.g. ‘body.items[3].tags’ or ‘path.thing-id’
Error message text
The value at the given location
A URI reference that identifies the specific occurrence of the problem.
HTTP status code
A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
A URI reference to human-readable documentation for the error.
Example
{ "$schema": "/api/v1/schemas/ErrorModel.json", "detail": "Property foo is required but is missing.", "instance": "https://example.com/error-log/abc123", "status": 400, "title": "Bad Request", "type": "about:blank"}