Skip to main content
POST
Atomically update session provider/model/effort/thinking, prove the result with a live provider turn, and roll back on failure

Authorizations

Authorization
string
header
required

Runtime context-key (rctx_*) issued by the Ravi gateway. Used by ordinary gateway operations; not accepted by Console-only operations. Bootstrap the first key with ravi daemon init-admin-key; rotate, derive, and revoke via the ravi context family. Specs: runtime/context-keys, sdk/auth.

Body

application/json
nameOrKey
string
required

Session name or key

effort
string

Reasoning effort (none|minimal|low|medium|high|xhigh|max|ultra) or 'clear'

model
string

Model id for the effective provider, or 'clear' to remove the override

probeTimeout
string

Liveness probe timeout in seconds (default 120)

provider
string

Runtime provider (claude|codex|grok|pi) or 'clear' to remove the override

skipProbe
boolean

Apply without the liveness probe (no rollback protection)

thinking
string

Thinking level (off|normal|verbose) or 'clear'

Response

Success — body conforms to the @Returns schema.

action
string
required
Allowed value: "update"
after
object
required
appliesOn
string
required
Allowed value: "next-turn-runtime-restart"
before
object
required
changed
object
required
clearedProviderSession
boolean
required
effective
object
required
probe
object | null
required
rematerializedToAgentRuntime
boolean
required
rolledBack
boolean
required
session
object
required
superseded
boolean
required
notification
object