Skip to main content

Set an Oliver thread's Ask or Auto mode.

PATCH/api/v1/oliver-threads/{oliver_thread_id}oliver:run

Changes the permission mode of your own plain chat: ask (any write the agent proposes waits for your approval) or auto (writes run without asking, each audited on its tool call). It is stamped on the thread's runs as the Portal's mode toggle does: auto applies to runs started after the change, ask also to the unfinished runs and the sub-agent runs under them from their next step. Only the thread's owner can change it. A thread of a channel, a sub-agent or a Portal editor has no mode of yours to set (409), a progressive thread has none (403), and Oliver itself cannot switch a chat to auto (403). Send If-Match from get_oliver_thread to change only the thread you read. Needs Set Oliver Thread Permission Mode and Manage Oliver Edit Mode, and Execute Oliver Editing Code to choose auto; callers without View Oliver Conversations receive a write receipt.

Scopeoliver:run
AsynchronousNo
MCP toolupdate_oliver_thread
Portal permissionsset_oliver_thread_permission_mode, manage_oliver_edit_mode

Parameters​

NameInTypeRequiredDescription
oliver_thread_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
If-MatchheaderstringOptional

Request body​

Content typeType
application/jsonOliverThreadPatchInput
application/merge-patch+jsonOliverThreadPatchInput

Responses​

StatusDescriptionBody
200Success.application/json OliverThread or object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
409conflictapplication/problem+json Problem
412precondition_failedapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

OliverThread​

FieldTypeRequiredDescription
agent_namestring or nullRequired
contextsarray of OliverThreadContextRequiredWhat the chat is scoped to: documents, folders and dataviews the agent is told to work with.
created_atstring (date-time) or nullRequired
latest_runOliverThreadRunRef or nullRequiredThe thread's most recent run; null when it has none.
my_ratingOliverThreadFeedback or nullRequiredYour own rating of the thread, as the Portal's rate dialog shows it; null until you rate it. Rate with rate_oliver_thread.
oliver_agent_idstring or nullRequiredThe agent the thread talks to.
oliver_thread_idstringRequired
permission_modestringRequiredask (any write waits for approval) or auto.
titlestring or nullRequiredThe chat's heading, taken from its first message; null until then.
updated_atstring (date-time) or nullRequiredWhen the thread last had a message.

OliverThreadContext​

FieldTypeRequiredDescription
dataview_idstring or nullRequiredThe dataview, for type dataview.
document_idstring or nullRequiredThe document, for type document.
folder_idstring or nullRequiredThe folder, for type folder.
labelstring or nullRequiredWhat the Portal shows for the context: a document's number, a folder's or dataview's name. Read-only: ignored when sent.
typestringRequireddocument, folder or dataview. A context this API does not set (a search, a clustering run, a redaction) reads as unknown.
type_codestring or nullRequiredThe stored type of a context whose type is unknown. Read-only.

OliverThreadContextInput​

FieldTypeRequiredDescription
dataview_idstring or nullOptionalThe dataview, for type dataview.
document_idstring or nullOptionalThe document, for type document.
folder_idstring or nullOptionalThe folder, for type folder.
labelstring or nullOptionalWhat the Portal shows for the context: a document's number, a folder's or dataview's name. Read-only: ignored when sent.
typestringRequireddocument, folder or dataview. A context this API does not set (a search, a clustering run, a redaction) reads as unknown.
type_codestring or nullOptionalThe stored type of a context whose type is unknown. Read-only.

OliverThreadFeedback​

FieldTypeRequiredDescription
created_atstring (date-time) or nullRequired
messagestring or nullRequiredWhat went wrong or right; required at 2 stars or fewer.
oliver_thread_idstringRequired
ratingintegerRequired1 to 5 stars. ≥ -2147483648; ≤ 2147483647
releasestring or nullRequiredThe backend release the rating is tied to; null when unknown.

OliverThreadPatchInput​

FieldTypeRequiredDescription
agent_namestring or nullOptional
contextsarray of OliverThreadContextInput or nullOptional
created_atstring (date-time) or nullOptional
latest_runobject or nullOptional
my_ratingobject or nullOptional
oliver_agent_idstring or nullOptional
oliver_thread_idstring or nullOptional
permission_modestring or nullOptionalask or auto. Auto runs the writes the agent proposes without asking you; every one is audited on its tool call. It applies to runs started after the change; ask also applies to the thread's unfinished runs from their next step.
titlestring or nullOptional
updated_atstring (date-time) or nullOptional

OliverThreadRunRef​

FieldTypeRequiredDescription
oliver_run_idstringRequired
statusstringRequiredThe run's status: planning, executing, running, waiting_for_user, completed, failed or cancelled (open).