Change an Oliver tool's settings.
PATCH/api/v1/oliver-tools/{oliver_tool_id}oliver:write
注記
このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。
Switches a tool off or on for the organisation, chooses whether its long results are summarised, and which model summarises them (an id from list_oliver_models; null goes back to the organisation's default). For a tool that is not built in it also changes name, description, category and the input and output schemas; a built-in tool answers 403 when one of those changes. Needs Edit Oliver Tools.
| スコープ | oliver:write (機密性の高いスコープ) |
| 非同期 | いいえ |
| MCP ツール | update_oliver_tool |
| Portal の権限 | edit_oliver_tools |
パラメーター
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
oliver_tool_id | path | string | 必須 | |
Docwize-Version | header | string (date) | 任意 | |
If-Match | header | string | 任意 |
リクエスト本文
| Content-Type | 型 |
|---|---|
application/json | OliverToolPatchInput |
application/merge-patch+json | OliverToolPatchInput |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
200 | Success. | application/json OliverTool または 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 |
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 のコードです。各コードからそのページに移動できます。
スキーマ
OliverTool
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
category | string または null | 必須 | |
char_count | integer | 必須 | ≥ -2147483648; ≤ 2147483647 |
created_at | string (date-time) または null | 必須 | |
description | string または null | 必須 | |
input_schema | string または null | 必須 | The JSON schema of the tool's input, as text. |
is_builtin | boolean | 必須 | True for a tool the Portal ships: its name, description, category and schemas cannot be changed and it cannot be deleted. |
is_enabled | boolean | 必須 | Whether agents may be given the tool. |
name | string | 必須 | |
oliver_tool_id | string | 必須 | |
output_schema | string または null | 必須 | The JSON schema of the tool's output, as text. |
slug | string | 必須 | The name an agent configuration's allowed_tools takes. |
summarise_oliver_model_id | string または null | 必須 | The model that condenses the results; null for the organisation's default. |
summarise_results | boolean | 必須 | Whether long results are condensed by a cheaper model first. |
token_count | integer | 必須 | The approximate size of the tool's text in tokens. ≥ -2147483648; ≤ 2147483647 |
updated_at | string (date-time) または null | 必須 |
OliverToolPatchInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
category | string または null | 任意 | Not for a built-in tool; null clears it. |
char_count | integer または null | 任意 | |
created_at | string (date-time) または null | 任意 | |
description | string または null | 任意 | Not for a built-in tool; null empties it. |
input_schema | string または null | 任意 | Not for a built-in tool; JSON text; null clears it. |
is_builtin | boolean または null | 任意 | |
is_enabled | boolean または null | 任意 | |
name | string または null | 任意 | Not for a built-in tool. |
oliver_tool_id | string または null | 任意 | |
output_schema | string または null | 任意 | Not for a built-in tool; JSON text; null clears it. |
slug | string または null | 任意 | |
summarise_oliver_model_id | string または null | 任意 | |
summarise_results | boolean または null | 任意 | |
token_count | integer または null | 任意 | |
updated_at | string (date-time) または null | 任意 |