Skip to main content

Give the outcome of a screen an Oliver run opened.

POST/api/v1/oliver-runs/{oliver_run_id}/surface-eventsoliver:run

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.

Scopeoliver:run
AsynchronousNo
MCP toolcreate_oliver_run_surface_event
Portal permissionsinteract_with_oliver_surfaces

Parameters​

NameInTypeRequiredDescription
oliver_run_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
Idempotency-KeyheaderstringOptionalmax 255

Request body​

Content typeType
application/jsonOliverSurfaceEventCreateInput

Responses​

StatusDescriptionBody
201Success.application/json OliverSurfaceEvent or 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
409conflict, idempotency_in_progressapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422idempotency_key_reused, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

OliverSurfaceEvent​

FieldTypeRequiredDescription
created_atstring (date-time) or nullRequired
modestringRequired
oliver_run_idstringRequired
oliver_surface_event_idstringRequiredThe surface the run opened: the one an outcome is given to.
save_statestringRequiredpending (open, waiting for an outcome), saved, published, cancelled or error (open).
stateobjectRequiredThe state the surface was saved with (and what it created); empty until an outcome carries one.
typestringRequiredThe kind of screen: email_template, search, exploration, agent_config and so on (open).
updated_atstring (date-time) or nullRequired

OliverSurfaceEventCreateInput​

FieldTypeRequiredDescription
errorstring or nullOptionalWhat went wrong (surface_error).
event_typestringRequiredsurface_saved, surface_published, surface_cancelled or surface_error.
oliver_surface_event_idstring or nullOptionalThe surface the outcome is for; omit for the run's open surface.
stateobject or nullOptionalWhat the surface was saved with, as the editor reports it (saved and published).