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

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_idpathstring必須
Docwize-Versionheaderstring (date)任意
If-Matchheaderstring任意

リクエスト本文​

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

応答​

ステータス説明本文
200Success.application/json OliverTool または 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
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 のコードです。各コードからそのページに移動できます。

スキーマ​

OliverTool​

フィールド型必須説明
categorystring または null必須
char_countinteger必須≥ -2147483648; ≤ 2147483647
created_atstring (date-time) または null必須
descriptionstring または null必須
input_schemastring または null必須The JSON schema of the tool's input, as text.
is_builtinboolean必須True for a tool the Portal ships: its name, description, category and schemas cannot be changed and it cannot be deleted.
is_enabledboolean必須Whether agents may be given the tool.
namestring必須
oliver_tool_idstring必須
output_schemastring または null必須The JSON schema of the tool's output, as text.
slugstring必須The name an agent configuration's allowed_tools takes.
summarise_oliver_model_idstring または null必須The model that condenses the results; null for the organisation's default.
summarise_resultsboolean必須Whether long results are condensed by a cheaper model first.
token_countinteger必須The approximate size of the tool's text in tokens. ≥ -2147483648; ≤ 2147483647
updated_atstring (date-time) または null必須

OliverToolPatchInput​

フィールド型必須説明
categorystring または null任意Not for a built-in tool; null clears it.
char_countinteger または null任意
created_atstring (date-time) または null任意
descriptionstring または null任意Not for a built-in tool; null empties it.
input_schemastring または null任意Not for a built-in tool; JSON text; null clears it.
is_builtinboolean または null任意
is_enabledboolean または null任意
namestring または null任意Not for a built-in tool.
oliver_tool_idstring または null任意
output_schemastring または null任意Not for a built-in tool; JSON text; null clears it.
slugstring または null任意
summarise_oliver_model_idstring または null任意
summarise_resultsboolean または null任意
token_countinteger または null任意
updated_atstring (date-time) または null任意