Give the outcome of a screen an Oliver run opened.
POST/api/v1/oliver-runs/{oliver_run_id}/surface-eventsoliver:run
注記
このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。
Settles a surface of your own run as the editor's Save, Publish, Cancel or error does: the surface takes the state, and a run parked on it (waiting_for_surface_save) continues, which respond_oliver_run cannot do (v1_run_editor_wait). Without oliver_surface_event_id the run's open surface is used (409 when it has none). state is what the screen was saved with. Answers 201 with the surface. Needs Interact With Oliver Surfaces; callers without View Oliver Conversations and View Oliver Surfaces receive a write receipt.
| スコープ | oliver:run |
| 非同期 | いいえ |
| MCP ツール | create_oliver_run_surface_event |
| Portal の権限 | interact_with_oliver_surfaces |
パラメーター
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
oliver_run_id | path | string | 必須 | |
Docwize-Version | header | string (date) | 任意 | |
Idempotency-Key | header | string | 任意 | max 255 |
リクエスト本文
| Content-Type | 型 |
|---|---|
application/json | OliverSurfaceEventCreateInput |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
201 | Success. | application/json OliverSurfaceEvent または 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 のコードです。各コードからそのページに移動できます。
スキーマ
OliverSurfaceEvent
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
created_at | string (date-time) または null | 必須 | |
mode | string | 必須 | |
oliver_run_id | string | 必須 | |
oliver_surface_event_id | string | 必須 | The surface the run opened: the one an outcome is given to. |
save_state | string | 必須 | pending (open, waiting for an outcome), saved, published, cancelled or error (open). |
state | object | 必須 | The state the surface was saved with (and what it created); empty until an outcome carries one. |
type | string | 必須 | The kind of screen: email_template, search, exploration, agent_config and so on (open). |
updated_at | string (date-time) または null | 必須 |
OliverSurfaceEventCreateInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
error | string または null | 任意 | What went wrong (surface_error). |
event_type | string | 必須 | surface_saved, surface_published, surface_cancelled or surface_error. |
oliver_surface_event_id | string または null | 任意 | The surface the outcome is for; omit for the run's open surface. |
state | object または null | 任意 | What the surface was saved with, as the editor reports it (saved and published). |