POST /revisions/:id/data/command (Command: upload_session_object)
Request Body
The
alias must conform to the session-object alias grammar:
one or more /-separated segments of A–Z, a–z, 0–9, ., _, -, @; 1–256 characters total; no
segment may be . or ... An alias outside the grammar returns 400 invalid_session_object_alias. A successful
upload fires a session_object_modified session event.
Response
Returns{"status": "success"} — no body beyond the status.
Whenvalue.typeis"thread", this command creates or updates the thread envelope only. Items are appended viapost_session_thread_item. Deleting the envelope cascades and removes all items.
Whenvalue.typeis"graph", this command creates or updates the graph envelope only. Elements (vertices and edges) are managed via the six graph commands. Deleting the envelope cascades and removes all elements. See the graph session object for the envelope and element schema.
Example
See also
- BlobHub Worker — thread handoff — set
workspace.agent_type,workspace.work_folder, andagent.state = "pending"on a thread envelope to hand it off to a BlobHub Worker. - BlobHub Worker — the
workersession object — the worker uploads aworker-aliased session object as its per-session affinity lock and activity log.

