メインコンテンツまでスキップ

Set an Oliver thread's Ask or Auto mode.

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

このページの操作の説明は、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_idpathstring必須
Docwize-Versionheaderstring (date)任意
If-Matchheaderstring任意

リクエスト本文​

Content-Type型
application/jsonOliverThreadPatchInput
application/merge-patch+jsonOliverThreadPatchInput

応答​

ステータス説明本文
200Success.application/json OliverThread または 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

エラー​

この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。

スキーマ​

OliverThread​

フィールド型必須説明
agent_namestring または null必須
contextsOliverThreadContext の配列必須What the chat is scoped to: documents, folders and dataviews the agent is told to work with.
created_atstring (date-time) または null必須
latest_runOliverThreadRunRef または null必須The thread's most recent run; null when it has none.
my_ratingOliverThreadFeedback または 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_idstring または null必須The agent the thread talks to.
oliver_thread_idstring必須
permission_modestring必須ask (any write waits for approval) or auto.
titlestring または null必須The chat's heading, taken from its first message; null until then.
updated_atstring (date-time) または null必須When the thread last had a message.

OliverThreadContext​

フィールド型必須説明
dataview_idstring または null必須The dataview, for type dataview.
document_idstring または null必須The document, for type document.
folder_idstring または null必須The folder, for type folder.
labelstring または null必須What the Portal shows for the context: a document's number, a folder's or dataview's name. Read-only: ignored when sent.
typestring必須document, folder or dataview. A context this API does not set (a search, a clustering run, a redaction) reads as unknown.
type_codestring または null必須The stored type of a context whose type is unknown. Read-only.

OliverThreadContextInput​

フィールド型必須説明
dataview_idstring または null任意The dataview, for type dataview.
document_idstring または null任意The document, for type document.
folder_idstring または null任意The folder, for type folder.
labelstring または null任意What the Portal shows for the context: a document's number, a folder's or dataview's name. Read-only: ignored when sent.
typestring必須document, folder or dataview. A context this API does not set (a search, a clustering run, a redaction) reads as unknown.
type_codestring または null任意The stored type of a context whose type is unknown. Read-only.

OliverThreadFeedback​

フィールド型必須説明
created_atstring (date-time) または null必須
messagestring または null必須What went wrong or right; required at 2 stars or fewer.
oliver_thread_idstring必須
ratinginteger必須1 to 5 stars. ≥ -2147483648; ≤ 2147483647
releasestring または null必須The backend release the rating is tied to; null when unknown.

OliverThreadPatchInput​

フィールド型必須説明
agent_namestring または null任意
contextsOliverThreadContextInput の配列 または null任意
created_atstring (date-time) または null任意
latest_runobject または null任意
my_ratingobject または null任意
oliver_agent_idstring または null任意
oliver_thread_idstring または null任意
permission_modestring または 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.
titlestring または null任意
updated_atstring (date-time) または null任意

OliverThreadRunRef​

フィールド型必須説明
oliver_run_idstring必須
statusstring必須The run's status: planning, executing, running, waiting_for_user, completed, failed or cancelled (open).