Skip to main content
PATCH
Update an event

Authorizations

Authorization
string
header
required

An app API key, e.g. Authorization: Bearer sk_live_…. Secret (sk_) for writes/sessions; publishable (pk_) is read-only (browser-safe).

Headers

If-Match
string

Path Parameters

id
string<uuid>
required
eventName
string
required

Body

application/json

An edge in the graph, addressed by its unique name. A transition MUST carry a to; an override MUST NOT. Optional fields beyond those listed are allowed (forward-compatible).

name
string
required

Unique edge id within the world.

kind
enum<string>
required
Available options:
transition,
override,
terminal
from
string[]
required

Source state id(s) this edge fires from.

to
string

Destination state id. Required for transition, forbidden for override.

base
string
detail
string
hotkey
string | null

Bound key. Reserved keys (WASD / digits) are rejected.

hidden
boolean
oneShot
boolean
requires
string[]
grants
string[]
anchor
object

Pin this choice to a detected OBJECT in the live frame. When set, the player runs a VLM detect loop and renders this edge as a clickable chip over the matched object (interactive object detection). Use /v1/perceive + /v1/ground/* to discover the right label.

Response

Event updated

The result of a graph write. world is the new, kernel-validated world; diagnostics carries advisory (warning/info) findings; rev is the new concurrency token (also returned as the ETag header).

world
object

A playable world's compiled graph, id, name, entrance, and the scene (states + events). This is the shape returned inside the world field of a World resource (see World) and by the graph-editing routes. Additional optional properties are allowed (forward-compatible); the schemaVersion on responses pins the contract version.

diagnostics
object[]
rev
string

The new revision token. Pass it as If-Match on the next write.

schemaVersion
string
Example:

"1.0"