Set an Oliver thread's Ask or Auto mode.
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.
| |
|---|
| Scope | oliver:run |
| Asynchronous | No |
| MCP tool | update_oliver_thread |
| Portal permissions | set_oliver_thread_permission_mode, manage_oliver_edit_mode |
Parameters
| Name | In | Type | Required | Description |
|---|
oliver_thread_id | path | string | Required | |
Docwize-Version | header | string (date) | Optional | |
If-Match | header | string | Optional | |
Request body
Responses
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
OliverThread
| Field | Type | Required | Description |
|---|
agent_name | string or null | Required | |
contexts | array of OliverThreadContext | Required | What the chat is scoped to: documents, folders and dataviews the agent is told to work with. |
created_at | string (date-time) or null | Required | |
latest_run | OliverThreadRunRef or null | Required | The thread's most recent run; null when it has none. |
my_rating | OliverThreadFeedback or null | Required | Your 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_id | string or null | Required | The agent the thread talks to. |
oliver_thread_id | string | Required | |
permission_mode | string | Required | ask (any write waits for approval) or auto. |
title | string or null | Required | The chat's heading, taken from its first message; null until then. |
updated_at | string (date-time) or null | Required | When the thread last had a message. |
OliverThreadContext
| Field | Type | Required | Description |
|---|
dataview_id | string or null | Required | The dataview, for type dataview. |
document_id | string or null | Required | The document, for type document. |
folder_id | string or null | Required | The folder, for type folder. |
label | string or null | Required | What the Portal shows for the context: a document's number, a folder's or dataview's name. Read-only: ignored when sent. |
type | string | Required | document, folder or dataview. A context this API does not set (a search, a clustering run, a redaction) reads as unknown. |
type_code | string or null | Required | The stored type of a context whose type is unknown. Read-only. |
OliverThreadContextInput
| Field | Type | Required | Description |
|---|
dataview_id | string or null | Optional | The dataview, for type dataview. |
document_id | string or null | Optional | The document, for type document. |
folder_id | string or null | Optional | The folder, for type folder. |
label | string or null | Optional | What the Portal shows for the context: a document's number, a folder's or dataview's name. Read-only: ignored when sent. |
type | string | Required | document, folder or dataview. A context this API does not set (a search, a clustering run, a redaction) reads as unknown. |
type_code | string or null | Optional | The stored type of a context whose type is unknown. Read-only. |
OliverThreadFeedback
| Field | Type | Required | Description |
|---|
created_at | string (date-time) or null | Required | |
message | string or null | Required | What went wrong or right; required at 2 stars or fewer. |
oliver_thread_id | string | Required | |
rating | integer | Required | 1 to 5 stars. ≥ -2147483648; ≤ 2147483647 |
release | string or null | Required | The backend release the rating is tied to; null when unknown. |
| Field | Type | Required | Description |
|---|
agent_name | string or null | Optional | |
contexts | array of OliverThreadContextInput or null | Optional | |
created_at | string (date-time) or null | Optional | |
latest_run | object or null | Optional | |
my_rating | object or null | Optional | |
oliver_agent_id | string or null | Optional | |
oliver_thread_id | string or null | Optional | |
permission_mode | string or null | Optional | ask 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. |
title | string or null | Optional | |
updated_at | string (date-time) or null | Optional | |
OliverThreadRunRef
| Field | Type | Required | Description |
|---|
oliver_run_id | string | Required | |
status | string | Required | The run's status: planning, executing, running, waiting_for_user, completed, failed or cancelled (open). |