Docs menu · Reference

Appends multiple events to the selected branch and space in one engine commit. Sequences are assigned in entry order. Entries that fail validation report a positional item error while valid entries still append.

Itemwise batches return one positional item result per input item. The outer batch status summarizes whether all, some, or none of the items succeeded.

Examples

Append many events in one commit.

CLI

$ strata command run --command-json '{"entries":[{"event_type":"user.created","payload":{"id":1}},{"event_type":"user.updated","payload":{"id":2}}],"type":"event_batch_append"}'
$ strata event count

Wire

{"entries":[{"event_type":"user.created","payload":{"id":1}},{"event_type":"user.updated","payload":{"id":2}}],"type":"event_batch_append"}
{"type":"event_count"}

Parameters

NameTypeRequiredDescription
entriesBatchEventEntry[]yesEvents to append.

Plus the optional scope: branch and space (default to the session branch and the "default" space).

Returns

BatchResult<EventBatchAppendItem>.

Errors

Invocation

  • CLI: via strata command run (no dedicated verb)
  • Wire type: event_batch_append

agents: this page as markdown → /docs/reference/event/batch_append.md