update_entity
Update an existing entity in the knowledge graph with partial field changes, using optional version checking to prevent overwrite conflicts.
Instructions
η.5.5.c — Update an entity with optional optimistic concurrency control. Pass expectedVersion to assert the live entity is at that version; throws VersionConflictError on mismatch. Omit for legacy last-write-wins. OCC-guarded writes auto-increment version.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Entity name to update | |
| updates | Yes | Partial entity object — fields to change | |
| expectedVersion | No | OCC: assert the live entity is at this version. Throws VersionConflictError on mismatch. |