Replace the folders an Oliver chat is scoped to.
このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。
Scopes your own folder-scoped chat to exactly the folders named, as the Portal's scope change does: the folders it had are marked superseded, the new ones added, and a continuation run retries the chat's original request with the new scope (continuation_oliver_run_id; follow it with wait_oliver_run). Each folder is checked as in create_oliver_thread (422 reference_not_found or reference_forbidden naming the ID you sent) and again by the Portal. A chat that is not scoped to a folder is 409 (documents and dataviews are not replaced here). Naming the folders it already has changes nothing. If-Match is the thread's ETag from get_oliver_thread, evaluated under the thread's lock. A progressive thread is refused (403). Needs Accept Oliver Scope Proposals, Start Oliver Runs and Execute Oliver Tools, as the Portal's scope change does; callers without View Oliver Conversations receive a write receipt.
| スコープ | oliver:run |
| 非同期 | いいえ |
| MCP ツール | replace_oliver_thread_contexts |
| Portal の権限 | accept_oliver_scope_proposals, start_oliver_runs, execute_oliver_tools |
パラメーター
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
oliver_thread_id | path | string | 必須 | |
Docwize-Version | header | string (date) | 任意 | |
If-Match | header | string | 任意 |
リクエスト本文
| Content-Type | 型 |
|---|---|
application/json | OliverThreadContextsReplaceInput |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
200 | Success. | application/json OliverThreadContextSet |
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 のコードです。各コードからそのページに移動できます。
スキーマ
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. |
OliverThreadContextSet
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
changed | boolean | 必須 | False when the chat was already scoped to exactly these folders: nothing was written and no run was started. |
contexts | OliverThreadContext の配列 | 必須 | What the chat is scoped to now. |
continuation_oliver_run_id | string または null | 必須 | The run that retries the original request with the new scope; null when nothing changed. |
OliverThreadContextsReplaceInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
contexts | OliverThreadContextInput の配列 | 必須 | The folders the chat is scoped to from now on, each {type: folder, folder_id}, replacing the folders it has. At least one; each must be readable by you (422 names the ID you sent) and needs folders:read. |
source_oliver_run_id | string または null | 任意 | The run whose request is retried with the new scope; omit for the thread's latest run. |