Set an Oliver thread's Ask or Auto mode.
このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。
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.
| スコープ | oliver:run |
| 非同期 | いいえ |
| MCP ツール | update_oliver_thread |
| Portal の権限 | set_oliver_thread_permission_mode, manage_oliver_edit_mode |
パラメーター
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
oliver_thread_id | path | string | 必須 | |
Docwize-Version | header | string (date) | 任意 | |
If-Match | header | string | 任意 |
リクエスト本文
| Content-Type | 型 |
|---|---|
application/json | OliverThreadPatchInput |
application/merge-patch+json | OliverThreadPatchInput |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
200 | Success. | application/json OliverThread または object |
400 | invalid_version, malformed_json | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
404 | not_found | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
409 | conflict | application/problem+json Problem |
412 | precondition_failed | application/problem+json Problem |
413 | payload_too_large | application/problem+json Problem |
415 | unsupported_media_type | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
エラー
この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。
スキーマ
OliverThread
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
agent_name | string または null | 必須 | |
contexts | OliverThreadContext の配列 | 必須 | What the chat is scoped to: documents, folders and dataviews the agent is told to work with. |
created_at | string (date-time) または null | 必須 | |
latest_run | OliverThreadRunRef または null | 必須 | The thread's most recent run; null when it has none. |
my_rating | OliverThreadFeedback または null | 必須 | 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 または null | 必須 | The agent the thread talks to. |
oliver_thread_id | string | 必須 | |
permission_mode | string | 必須 | ask (any write waits for approval) or auto. |
title | string または null | 必須 | The chat's heading, taken from its first message; null until then. |
updated_at | string (date-time) または null | 必須 | When the thread last had a message. |
OliverThreadContext
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
dataview_id | string または null | 必須 | The dataview, for type dataview. |
document_id | string または null | 必須 | The document, for type document. |
folder_id | string または null | 必須 | The folder, for type folder. |
label | string または null | 必須 | 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 | 必須 | document, folder or dataview. A context this API does not set (a search, a clustering run, a redaction) reads as unknown. |
type_code | string または null | 必須 | The stored type of a context whose type is unknown. Read-only. |
OliverThreadContextInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
dataview_id | string または null | 任意 | The dataview, for type dataview. |
document_id | string または null | 任意 | The document, for type document. |
folder_id | string または null | 任意 | The folder, for type folder. |
label | string または null | 任意 | 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 | 必須 | document, folder or dataview. A context this API does not set (a search, a clustering run, a redaction) reads as unknown. |
type_code | string または null | 任意 | The stored type of a context whose type is unknown. Read-only. |
OliverThreadFeedback
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
created_at | string (date-time) または null | 必須 | |
message | string または null | 必須 | What went wrong or right; required at 2 stars or fewer. |
oliver_thread_id | string | 必須 | |
rating | integer | 必須 | 1 to 5 stars. ≥ -2147483648; ≤ 2147483647 |
release | string または null | 必須 | The backend release the rating is tied to; null when unknown. |
OliverThreadPatchInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
agent_name | string または null | 任意 | |
contexts | OliverThreadContextInput の配列 または null | 任意 | |
created_at | string (date-time) または null | 任意 | |
latest_run | object または null | 任意 | |
my_rating | object または null | 任意 | |
oliver_agent_id | string または null | 任意 | |
oliver_thread_id | string または null | 任意 | |
permission_mode | string または null | 任意 | 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 または null | 任意 | |
updated_at | string (date-time) または null | 任意 |
OliverThreadRunRef
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
oliver_run_id | string | 必須 | |
status | string | 必須 | The run's status: planning, executing, running, waiting_for_user, completed, failed or cancelled (open). |