Answer an approval or question, or cancel an Oliver run.
POST/api/v1/oliver-runs/{oliver_run_id}/respondoliver:run
注記
このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。
approve or deny an approval, answer a question (answer, selections or step_answers as the question asks), or cancel the run and its sub-agent runs. tool_call_key is the pending.tool_call_key. images attaches pictures to the answer (not with cancel), through the Portal's inject-image, and needs Inject Oliver Images. A question the run is not waiting on is 409. Requires Resume Oliver Runs or Cancel Oliver Runs for the selected action; resuming also needs Execute Oliver Tools.
| スコープ | oliver:run |
| 非同期 | いいえ |
| MCP ツール | respond_oliver_run |
パラメーター
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
oliver_run_id | path | string | 必須 | |
Docwize-Version | header | string (date) | 任意 | |
Idempotency-Key | header | string | 任意 | max 255 |
リクエスト本文
| Content-Type | 型 |
|---|---|
application/json | OliverRunRespondInput |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
200 | Success. | application/json OliverRunResult または 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, idempotency_in_progress | 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 | idempotency_key_reused, 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 のコードです。各コードからそのページに移動できます。
スキーマ
OliverMessageImageInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
caption | string または null | 任意 | What the image shows, for the agent; default "User attached image". |
data | string | 必須 | The image bytes, base64; a data URL is accepted. PNG, JPEG, GIF or WebP. |
OliverRunRespondInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
action | string | 必須 | approve or deny for an approval; answer for a question; cancel to stop the run. |
answer | string または null | 任意 | The answer to a question; required unless steps or selections answer it. |
comment | string または null | 任意 | A note with an approval or refusal. |
images | OliverMessageImageInput の配列 | 任意 | Pictures to attach to your answer, as the chat's attach button does for a question the run waits on (a screenshot it asked for): each base64 with an optional caption, within get_company_settings_oliver_image_limits. One batch per waiting turn. Not with cancel. |
selections | string の配列 | 任意 | The choices of a question that allows several. |
step_answers | object | 任意 | The answer to each step of a question with steps, by step_key. |
tool_call_key | string または null | 任意 | pending.tool_call_key of the approval or question; required for approve, deny and answer. |
OliverRunResult
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
accepted | boolean | 必須 | True when the answer resumed the run, or the cancel stopped it. |
action | string | 必須 | |
already_finished | boolean | 必須 | True when a cancel found the run already finished. |
oliver_run_id | string | 必須 | |
status | string | 必須 |